[issue21762] update the import machinery to only use __spec__

Nick Coghlan report at bugs.python.org
Sun Jun 15 01:49:30 CEST 2014


Nick Coghlan added the comment:

Manipulating name, package and path at runtime is fully supported, and the
module level attributes accordingly take precedence over the initial import
time spec.

There may be some test suite gaps and documentation issues around the
behaviour, but it's definitely intentional (things like runpy,
"pseudo-modules", third party namespace package support and workarounds for
running modules inside packages correctly rely on it).

----------

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


More information about the Python-bugs-list mailing list