[Python-Dev] closure semantics

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Oct 24 01:04:47 EDT 2003

> It would break any unadorned 'global x' in a nested scope if the name
> did not exist anywhere.
> One option would be to have an "if the name doesn't exist, it it
> created in module scope".

What would be wrong with that? It's what I had in mind.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list