[Python-Dev] PEP 3103: A Switch/Case Statement
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Jun 29 01:32:33 CEST 2006
Nick Coghlan wrote:
> By 'current namespace' I really do mean locals() - the cell objects themselves
> would be local variables from the point of view of the currently executing code.
This is wrong. Cells are *parameters* implicitly passed
in by the calling function. They may temporarily be
referenced from the current scope, but their "home"
has to be in an outer scope, otherwise they won't
survive between calls.
--
Greg
More information about the Python-Dev
mailing list