[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:
http://docs.python.org/library/functions.html?highlight=locals#locals

--
assignee: d...@python
components: Documentation
messages: 119192
nosy: d...@python, guettli
priority: normal
severity: normal
status: open
title: Docs: can globals() be updated?
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10151
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  - works for me
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10151
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com