This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2019-05-28.07:37:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559029061.14.0.328684807212.issue37074@roundup.psfhosted.org>
In-reply-to
Content
>>> os.stat('nul')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [WinError 1] Incorrect function: 'nul'
>>> os.stat('con')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [WinError 87] The parameter is incorrect: 'con'

But os.open() and os.fstat() work.

>>> os.fstat(os.open('nul', os.O_RDONLY))
os.stat_result(st_mode=8192, st_ino=0, st_dev=0, st_nlink=0, st_uid=0, st_gid=0, st_size=0, st_atime=0, st_mtime=0, st_ctime=0)
>>> os.fstat(os.open('con', os.O_RDONLY))
os.stat_result(st_mode=8192, st_ino=0, st_dev=0, st_nlink=0, st_uid=0, st_gid=0, st_size=0, st_atime=0, st_mtime=0, st_ctime=0)
History
Date User Action Args
2019-05-28 07:37:41serhiy.storchakasetrecipients: + serhiy.storchaka, paul.moore, tim.golden, zach.ware, steve.dower
2019-05-28 07:37:41serhiy.storchakasetmessageid: <1559029061.14.0.328684807212.issue37074@roundup.psfhosted.org>
2019-05-28 07:37:41serhiy.storchakalinkissue37074 messages
2019-05-28 07:37:40serhiy.storchakacreate