[Python-Dev] Dotted/indexed defs ? Re: PEP 8: Discourage named lambdas? (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue May 6 02:36:55 CEST 2008


Boris Borcic wrote:

def inst.bar(...) : ... def fnk : ...

should be similarly permitted. Has this ever been discussed ?

Yes, but there didn't seem to be much interest in the idea. Which is disappointing, because it would be ideal for setting up function tables and such like.

One small problem is that there would be no sensible name to give the function object, but that's no worse than what you get when using a lambda.

-- Greg



More information about the Python-Dev mailing list