Factory 1.1: Object Oriented Currying

Pete pfein at pobox.com
Mon Nov 10 23:08:11 CET 2008

What's New
Version 1.1 adds missing unittests and doctests.  There are no other  
changes in this release.

Factory is an object-oriented approach to partial function  
application, also known as currying. The Factory module is a more  
powerful implementation of this pattern. Some improvements include:

- safer, as invalid arguments are detected immediately, instead of at  
call time
- intelligent support for classes, instance methods & all other  
- bound arguments can be inspected and modified as attributes
- several convenient methods for (re)binding arguments
- no "Russian dolls" of nested lambdas

Using Factories can:

- simplify writing callbacks
- reduce bugs in concurrent applications
- provide easy lazy evaluation

More info at: http://pypi.python.org/pypi/Factory/
Source at: http://code.google.com/p/python-factory/

More information about the Python-announce-list mailing list