Author d_kagedal
Recipients d_kagedal
Date 2007-10-22.12:04:17
SpamBayes Score 0.00937225
Marked as misclassified No
Message-id <1193054658.57.0.203252941268.issue1311@psf.upfronthosting.co.za>
In-reply-to
Content
When moving from Python 2.4 to Python 2.5, my program stopped working on
win32 because of a change in os.path.exists. I couldn't find any
description of the change, so I can only assume it's a bug.

The os.devnul variable contains the name of the "null file", which is
"/dev/null" on posix, and "nul" on win32. As I understand it, "NUL" is a
file that exists in every directory on win32.

Opening the "nul" file with open("nul", "r") works fine, but
os.path.exists("nul") returns False. In Python 2.4, it returns True.
History
Date User Action Args
2007-10-22 12:04:19d_kagedalsetspambayes_score: 0.00937225 -> 0.00937225
recipients: + d_kagedal
2007-10-22 12:04:18d_kagedalsetspambayes_score: 0.00937225 -> 0.00937225
messageid: <1193054658.57.0.203252941268.issue1311@psf.upfronthosting.co.za>
2007-10-22 12:04:18d_kagedallinkissue1311 messages
2007-10-22 12:04:17d_kagedalcreate