R. David Murray <rdmur...@bitdance.com> added the comment: No, the docs are correct as they stand. They say that without an argument it acts like locals(), and there is even a special note saying you shouldn't modify the returned dictionary because what happens when you do is undefined. It just so happens that when locals==globals, what you show works, but it is not guaranteed to work even in CPython, and is reasonably likely to not work in other Python interpreters.
---------- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9515> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com