[issue10151] Docs: can globals() be updated?

2010-10-20 Thread Thomas Guettler
New submission from Thomas Guettler guet...@thomas-guettler.de: Hi, the documentation of globals() is missing a note if you can update the dictionary: http://docs.python.org/library/functions.html?highlight=globals#globals For locals() it is documented:

[issue10151] Docs: can globals() be updated?

2010-10-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It is documented, however, that globals() returns the dictionary of a module, which can be modified. For locals(), the situation is quite more complicated, which is why the warning there is warranted. -- nosy: +georg.brandl resolution: