[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.

    freeze EXPR as VAR

    frozen VAR=EXPR


More information about the Python-ideas mailing list