[issue35358] avoid '-' in importlib.import_module and builtins.__import__
Guido van Rossum
report at bugs.python.org
Fri Nov 30 11:01:36 EST 2018
Guido van Rossum <guido at python.org> added the comment:
Do not change this. I'd rather see it documented that importlib can import any name as long as it doesn't contain a dot, slash or backslash.
(Clearly the fact that Django loads it is an additional argument that this should be supported, not forbidden.)
It's the same as for getattr etc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35358>
_______________________________________
More information about the Python-bugs-list
mailing list