python-simplegeneric

Simple generic functions (similar to Python's own len(), pickle.dump(), etc)

The gsimplegeneric module lets you define simple single-dispatch generic functions, akin to Python's built-in generic functions like glen(), iter() and so on. However, instead of using specially-named methods, these generic functions use simple lookup tables, akin to those used by e.g. gpickle.dump() and other generic functions found in the Python standard library. As you can see from the above examples, generic functions are actually quite common in Python already, but there is no standard way to create simple ones. This library attempts to fill that gap, as generic functions are an gexcellent alternative to the Visitor pattern_, as well as being a great substitute for most common uses of adaptation. This library tries to be the simplest possible implementation of generic functions, and it therefore eschews the use of multiple or predicate dispatch, as well as avoiding speedup techniques such as C dispatching or code generation. But it has absolutely no dependencies, other than Python 2.4, and the implementation is just a single Python module of less than 100 lines.

Для openSUSE Leap 15.5 відсутній офіційний пакунок

Дистрибутиви

openSUSE Tumbleweed

devel:languages:python Експериментально
0.8.1

openSUSE Leap 15.6

devel:languages:python Експериментально
0.8.1
devel:languages:python:backports Експериментально
0.8.1

openSUSE Leap 15.5

Cloud:OpenStack:2023.2 Експериментально
0.8.1
devel:languages:python:backports Експериментально
0.8.1

openSUSE Leap 15.4

Cloud:OpenStack:Zed Експериментально
0.8.1
devel:languages:python:backports Експериментально
0.8.1

openSUSE Backports for SLE 15 SP3

home:frispete:python Спільнота
0.8.1

SUSE SLE-15-SP2

Cloud:OpenStack:Master Експериментально
0.8.1
Cloud:OpenStack:Ussuri Експериментально
0.8.1
devel:languages:python:backports Експериментально
0.8.1

SUSE SLE-15-SP1

Cloud:OpenStack:Train Експериментально
0.8.1
devel:languages:python:backports Експериментально
0.8.1

SUSE SLE-12-SP5

RedHat RHEL-7

isv:perlur:epel Експериментально
0.8

CentOS CentOS-7

systemsmanagement:Ardana:8:CentOS Експериментально
0.8.1
systemsmanagement:Ardana:8:CentOS:7.3 Експериментально
0.8.1
systemsmanagement:Ardana:8:CentOS:7.5 Експериментально
0.8.1
systemsmanagement:Ardana:9:CentOS:7.5 Експериментально
0.8.1

Непідтримувані дистрибутиви

Наступні дистрибутиви офіційно не підтримуються. Використовуйте ці пакунки на власний ризик.

openSUSE:12.3

openSUSE:13.1

openSUSE:13.2

openSUSE:Leap:42.1

openSUSE:Leap:42.2

openSUSE:Leap:42.3

SUSE:SLE-15:GA

openSUSE:Leap:15.0

openSUSE:Leap:15.1

openSUSE:Leap:15.2

openSUSE:Slowroll:Base:2

SUSE:SLE-12:SLE-Module-Toolchain

SUSE:SLE-12:GA

SUSE:SLE-12:SLE-Module-Adv-Systems-Management

SUSE:SLE-11:SP3