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 d_kagedal
Recipients d_kagedal, facundobatista
Date 2007-10-23.07:09:26
SpamBayes Score 0.047803346
Marked as misclassified No
Message-id <1193123367.57.0.546891088026.issue1311@psf.upfronthosting.co.za>
In-reply-to
Content
I tried it on two different machines, and got two different answers: conan$ /cygdrive/c/Python25/python -c 'import os.path; print os.path.exists("nul")' False conan$ /cygdrive/c/Python24/python -c 'import os.path; print os.path.exists("nul")' False conan$ /cygdrive/c/Python24/python -c 'import os; print os.stat("nul")' Traceback (most recent call last): File "<string>", line 1, in ? OSError: [Errno 22] Invalid argument: 'nul' conan$ /cygdrive/c/Python25/python -c 'import os; print os.stat("nul")' Traceback (most recent call last): File "<string>", line 1, in <module> WindowsError: [Error 87] The parameter is incorrect: 'nul' titti$ /cygdrive/c/Python24/python -c 'import os.path; print os.path.exists("nul")' True titti$ /cygdrive/c/Python25/python -c 'import os.path; print os.path.exists("nul")' False titti$ /cygdrive/c/Python24/python -c 'import os; print os.stat("nul")' (33206, 0L, 3, 1, 0, 0, 0L, -1, -1, -1) titti$ /cygdrive/c/Python25/python -c 'import os; print os.stat("nul")'Traceback (most recent call last): File "<string>", line 1, in <module> WindowsError: [Error 87] The parameter is incorrect: 'nul' I ran it from a cygwin prompt, but the pythons are native. So you are correct that it doesn't work as I expected in Python 2.4 either on the "conan" host.. On "titti", there is a difference in how os.path.exist works between 2.4 and 2.5. On "conan" there is actually also a difference, but only in the exception raised by os.stat. I don't know what the differences between these installation are.
History
Date User Action Args
2007-10-23 07:09:27d_kagedalsetspambayes_score: 0.0478033 -> 0.047803346
recipients: + d_kagedal, facundobatista
2007-10-23 07:09:27d_kagedalsetspambayes_score: 0.0478033 -> 0.0478033
messageid: <1193123367.57.0.546891088026.issue1311@psf.upfronthosting.co.za>
2007-10-23 07:09:27d_kagedallinkissue1311 messages
2007-10-23 07:09:26d_kagedalcreate