I opened the PEP 499: it links to https://bugs.python.org/issue19702 "Update pickle to take advantage of PEP 451" which is still open (since 2013!). (It also has two dependencies which are now closed.)
"PEP 451 -- A ModuleSpec Type for the Import System" https://www.python.org/dev/peps/pep-0451/ (this one was already implemented in Python 3.4) Victor 2016-07-12 11:30 GMT+02:00 Chris Angelico <ros...@gmail.com>: > On Tue, Jul 12, 2016 at 7:26 PM, Victor Stinner > <victor.stin...@gmail.com> wrote: >> "PEP 499 -- python -m foo should bind sys.modules['foo'] in addition >> to sys.modules['__main__']" >> https://www.python.org/dev/peps/pep-0499/ >> => draft >> > > I have a vague recollection that this ran into some trickinesses with > certain forms of import (zip??). If that's not the case, is this one > simply awaiting pronouncement? > > ChrisA > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com