[Python-Dev] PEP 3103: A Switch/Case Statement (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 29 01:32:33 CEST 2006
- Previous message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Next message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Next message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]