[Python-ideas] Proposal for function expressions

Scott David Daniels Scott.Daniels at Acm.Org
Thu Jul 16 00:43:28 CEST 2009


Nick Coghlan wrote:
...
> from functools import partial as do
> 
> @do(fn)
^^^ The moral equivalent of add_callback(lambda x: function(x)) ^^^
> def _(...):
>     stmt1
>     ...

--Scott David Daniels
Scott.Daniels at Acm.Org




More information about the Python-ideas mailing list