[issue12633] sys.modules gets special treatment

2011-07-25 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for making this limitation explicit. See the caveat on locals() [1] for an example of how to note this kind of restriction. [1] http://docs.python.org/dev/library/functions.html#locals -- ___ Python tracker

[issue12633] sys.modules gets special treatment

2011-07-24 Thread Eric Snow
New submission from Eric Snow : The sys.modules dict is a special object. It is the only variable of the CPython interpreter object that is exposed in the sys module[1]. Everything else in sys lives in the module. However, the modules dict lives in the interpreter object and is bound to the