[issue18192] Move imp.get_magic() to importlib

Brett Cannon report at bugs.python.org
Wed Jun 12 19:41:00 CEST 2013


Brett Cannon added the comment:

So what are your arguments to making it more accessible? The typical user won't need to use it so I don't know if it really requires being off of importlib directly like find_loader, import_module, or (eventually) reload (which for convenience-sake while at the interpreter should be there).

While I'm happy to entertain the argument that it should be importlib.machinery.MAGIC (like the file suffixes for the various file types) instead of importlib.abc.SourceLoader.magic, I don't want to make it importlib.magic.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18192>
_______________________________________


More information about the Python-bugs-list mailing list