""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
|> At the global level, the subversion does not work:
|
| I think you are misinterpreting what you are seeing.

No, you didn't understand the code I posted which explicitely demonstrated 
the same point you repeated.  Again:

>>> globals()['None'] = 'ha'
>>> None
>>> dir()
['None', '__builtins__', '__doc__', '__name__', '__package__']
>>> globals()['None']
'ha'

The point of the the last two lines is that the assignment *was* made but 
was ignored in line 2 [because, obviously, the interpreter bypasses the 
normal lookup procedure].



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to