[New-bugs-announce] [issue38081] Different behavior of in 3.7 and 3.8 os.path.realpath('nul')

Александр Семенов report at bugs.python.org
Tue Sep 10 02:30:37 EDT 2019


New submission from Александр Семенов <iamsav at gmail.com>:

Windows 10:
```
C:\Users\User\Downloads>py -3.7 -c "import os.path;os.path.realpath('nul')"

C:\Users\User\Downloads>py -3.8 -c "import os.path;os.path.realpath('nul')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python38\lib\ntpath.py", line 592, in realpath
    path = _getfinalpathname_nonstrict(path)
  File "C:\Python38\lib\ntpath.py", line 566, in _getfinalpathname_nonstrict
    path = _readlink_deep(path, seen)
  File "C:\Python38\lib\ntpath.py", line 536, in _readlink_deep
    path = _nt_readlink(path)
OSError: [WinError 1] Неверная функция: 'nul'
```
I think it's a bug. pip uses this code, so 'pip install pandas' won't work in 3.8

----------
components: Library (Lib)
messages: 351577
nosy: Александр Семенов
priority: normal
severity: normal
status: open
title: Different behavior of in 3.7 and 3.8 os.path.realpath('nul')
type: behavior
versions: Python 3.8

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


More information about the New-bugs-announce mailing list