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 facundobatista
Recipients d_kagedal, facundobatista
Date 2007-10-22.17:13:49
SpamBayes Score 0.004415382
Marked as misclassified No
Message-id <>
You migrated only of Python version, or also of windows installation?

I checked Py25 and Py23 in my Win 2k, and in both I have the same behaviour:

Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat("nul")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 22] Invalid argument: 'nul'
>>> os.path.exists("nul")

I checked the os.stat() function because the documentation says that if
it gives an error, exists() will return False (and that this is how it's

BTW, note that if you call to the GetFileAttributesEx() function of
kernel32.dll by yourself, it will give error for the "NUL" file, showing
that it actually does not exist.

Because of this, I'd say that current behaviour of os.exists() is ok,
but I want to know the answer of my question regarding your change
before closing this as not-a-bug.

Date User Action Args
2007-10-22 17:13:50facundobatistasetspambayes_score: 0.00441538 -> 0.004415382
recipients: + facundobatista, d_kagedal
2007-10-22 17:13:49facundobatistasetspambayes_score: 0.00441538 -> 0.00441538
messageid: <>
2007-10-22 17:13:49facundobatistalinkissue1311 messages
2007-10-22 17:13:49facundobatistacreate