Chris Rebert:

> It sounds like you're describing the Strategy Pattern
> (http://en.wikipedia.org/wiki/Strategy_pattern).
>
> To have objects callable like functions, just implement the  __call__
> special method in your class(es):

Please, can't you just use a bit of functional-style programming? Like
creating nested functions on the fly, etc.

Bye,
bearophile
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to