[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
- Previous message: [Python-Dev] Dotted/indexed defs ? Re: PEP 8: Discourage named lambdas?
- Next message: [Python-Dev] PEP 8: Discourage named lambdas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Dotted/indexed defs ? Re: PEP 8: Discourage named lambdas?
- Next message: [Python-Dev] PEP 8: Discourage named lambdas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]