[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed
Brett Cannon
report at bugs.python.org
Thu Nov 3 22:20:40 CET 2011
Brett Cannon <brett at python.org> added the comment:
This is working as intended. Importers on sys.meta_path should be able to rely on the assumption that the names they are given are syntactically proper module names and not just any random string. You could perform a transform from module name to random string name in an importer or whatever to support some funky naming scheme under the hood. You could also walk sys.meta_path yourself to get around this sanity check, but I see no value in changing import itself to support this use case.
----------
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13314>
_______________________________________
More information about the Python-bugs-list
mailing list