Re: [Python-3000] The meaning of "global variable"

2006-11-04 Thread Ron Adam
Greg Ewing wrote: > Ron Adam wrote: > >> How about limiting nonlocal to just the immediate parent scope and using >> 'parent' as the keyword? > > That could lead to confusing situations. What should > the following do: > >def f(): > x = 42 > def g(): >def h(): >par

Re: [Python-3000] Draft PEP for outer scopes

2006-11-04 Thread Ka-Ping Yee
On Thu, 2 Nov 2006, Andrew McNamara wrote: > >The global scope is the widest scope in which you can declare a variable. > > This is inaccurate at best. No, my statement is correct. What you are disputing is not what i wrote: The global scope is the widest scope in which you can declare a variabl