Dave Benjamin wrote:
You could use a combination of bound methods and the "curry" function defined in the Python Cookbook:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52549

The examples in the discussion do just that.

Also, in the CVS version of Python, there's a new module called "functional" with a function called "partial" that does the same thing as far as I can tell. So, in the future, this function will probably be available in the standard library.


Dave
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to