[Import-SIG] Bundling importlib2 with Python 2.7.x?
Nick Coghlan
ncoghlan at gmail.com
Mon Jul 6 04:11:57 CEST 2015
What do folks think of the idea of proposing bundling importlib2 with
Python 2.7.x (via pip), such that issues like
https://bitbucket.org/pypa/setuptools/issue/250/ can be addressed by
telling people to enable the Python 3 style import system?
That is, Python 2 would still use the legacy import system by default,
but Python 3 style imports would just be an "import importlib2;
importlib2.install_import_hooks()" away?
The main risk I see with the idea is projects deciding to install
those hooks as a side effect of their own import.
Regards,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Import-SIG
mailing list