Stefan Seefeld wrote:
Indeed, using 'globals()' and 'locals()' works. However,
both report the same underlaying object, which is a bit
confusing. (Under what circumstances does 'locals()' return
not the same object as 'globals()' ?)

When you aren't at the interactive prompt... there are no "locals" there, so locals() just maps through to globals(). (Probably this applies to all code at the module level, as oppsed to code inside any callable, but I haven't verified... you can easily enough.)

Does this information invalidate your bug report?

-Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to