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 <rep...@bugs.python.org> <http://bugs.python.org/issue21762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com