[Python-ideas] Tweaking closures and lexical scoping to include the function being defined

Jan Kaliszewski zuo at chopin.edu.pl
Thu Sep 29 00:02:25 CEST 2011


Steven D'Aprano dixit (2011-09-28, 23:48):

> >I think ``rebind expression as name`` reads fine. Not sure if "rebind" exactly gives the right impression though.
> 
> Why "rebind"? The expression hasn't been bound once yet, so you can't
> REbind it.

Maybe:
    freeze EXPR as VAR

or
    frozen VAR=EXPR

Cheers.
*j



More information about the Python-ideas mailing list