19 Jan
2007
19 Jan
'07
3:20 a.m.
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