Nick Coghlan added the comment: If I understand your question correctly, then yes, __package__ should be used when converting explicit relative imports to absolute ones.
To write a test, run a submodule that needs the new fallback feature via the -m switch (it will fail if using __name__) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17636> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com