[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

Eric V. Smith report at bugs.python.org
Fri Aug 25 20:20:40 EDT 2017


Eric V. Smith added the comment:

I think this is a function of the .pth file causing 'zc' to be in sys.modules. If I delete the .pth file, the first import of zc.m succeeds.

Note that if the .pth file is in place, then:

% bin/python3
Python 3.6.1 (default, Mar 24 2017, 12:50:34)
[GCC 5.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> 'zc' in sys.modules
True
>>>

----------

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


More information about the Python-bugs-list mailing list