On Sat, 19 Jul 2008 08:55:23 -0700, bearophileHUGS wrote: > Found from Reddit, it's for e ECMA(Java)Script, but something similar > may be useful for Python too: > > http://jsclass.jcoglan.com/methodchain.html > http://blog.jcoglan.com/2008/07/16/where-did-all-my-code-go-using-ojay-chains-to-express-yourself-clearly/
What's called `MethodChain` there seems to be function composition in functional languages. Maybe `functools` could grow a `compose()` function. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list