[Python-Dev] 2.5 and beyond

Andrew Koenig ark at acm.org
Fri Jun 30 18:52:53 CEST 2006


> I think it should increment (i.e. rebind) g, for the same reason that
> 
> 	g = [1]
> 	def f():
> 		g[0] += 1
> 	f()
> 
> rebinds g[0].

I saw messages out of sequence and did not realize that this would be a
change in behavior from 2.4.  Sigh.

I hope Py3000 has lexical scoping a la Scheme...





More information about the Python-Dev mailing list