Guix will hold its first online conference November 22nd. Propose a talk before November 6th. Learn more!

python-simplegeneric 0.8.1 Python module for simple generic functions

The simplegeneric module lets you define simple single-dispatch generic functions, akin to Python’s built-in generic functions like len(), 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. pickle.dump() and other generic functions found in the Python standard library.