Name : python2-simplegeneric
| |
Version : 0.8.1
| Vendor : obs://build_opensuse_org/home:inescid
|
Release : lp150.10.1
| Date : 2018-12-07 15:02:59
|
Group : Development/Languages/Python
| Source RPM : python-simplegeneric-0.8.1-lp150.10.1.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : Simple generic functions (similar to Python\'s own len(), pickle.dump(), etc)
|
Description :
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.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/inescid:/python/openSUSE_Leap_15.0/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
python-simplegeneric
python2-simplegeneric
Requires :