[Python-Dev] closure semantics

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Oct 21 23:14:56 EDT 2003


Guido:

> >     def inner():
> >        outer.x = 42
> 
> Because this already means something!

Hmmm, maybe

   x of outer = 42

Determined-to-get-an-'of'-into-the-language-somehow-ly,

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