Antoine Pitrou added the comment: If code objects grew a __module__ attribute (which functions already have), wouldn't it be just a matter of falling back on sys.modules[my_code_object.__module__].__file__ when my_code_object.co_filename points to a non-existent file?
---------- nosy: +pitrou _____________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1180193> _____________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com