[Python-Dev] Problem between deallocation of modules and func_globals (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Fri Jan 19 04:20:04 CET 2007
- Previous message: [Python-Dev] Problem between deallocation of modules and func_globals
- Next message: [Python-Dev] Problem between deallocation of modules and func_globals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson schrieb:
Seems to me like a bug, but the bug could be fixed if the module's dictionary kept a (circular) reference to the module object. Who else has been waiting for a module attribute?
This is the time machine at work:
py> import encodings py> encodings.search_function.module 'encodings'
It's a string, rather than the module object, precisely to avoid cyclic references.
Regards, Martin
- Previous message: [Python-Dev] Problem between deallocation of modules and func_globals
- Next message: [Python-Dev] Problem between deallocation of modules and func_globals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]