[Python-ideas] Proposal for function expressions
Nick Coghlan
ncoghlan at gmail.com
Wed Jul 15 15:55:03 CEST 2009
Paul Moore wrote:
> (note that I could make my version look a bit nicer by a "from
> functools import partial", so you're still not allowed to argue
> aesthetics :-))?
Make that a "from functools import partial as do" and you get:
@do(fn)
def _(...):
stmt1
stmt2
@do(fn, a, b, c)
def _(...):
stmt1
stmt2
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-ideas
mailing list