[issue37089] `import Lib.os` works on windows (but shouldn't)

Terry J. Reedy report at bugs.python.org
Fri May 31 18:07:58 EDT 2019


Terry J. Reedy <tjreedy at udel.edu> added the comment:

If .../Tools and its subdirectories had __init__.py files, the presence of sys.prefix on sys.path, on Windows, would allow imports from those subdirs.  Otherwise, it only provides a second way to import stdlib modules.  This seems like a bit of a bug.  Guido, do you remember why we have this Windows-only feature?

----------
nosy: +gvanrossum, terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37089>
_______________________________________


More information about the Python-bugs-list mailing list