[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread mmckerns
mmckerns added the comment: Sure, that's obvious for `datetime` and `sys`. Less obvious for unexpected conflicts with stdlib modules that begin with an underscore... -- ___ Python tracker <https://bugs.python.org/is

[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread mmckerns
New submission from mmckerns : In Lib/datetime.py, there's an import: `from _datetime import *` which will fail if `_datetime.py` exists in the current directory, or earlier in the path than Lib. For reference, see: https://github.com/numpy/numpy/issues/15257 -- components: Li