MethodChain
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Jul 19 12:28:16 EDT 2008
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
More information about the Python-list
mailing list