[New-bugs-announce] [issue1311] os.path.exists(os.devnul) regression on windows
David Kågedal
report at bugs.python.org
Mon Oct 22 14:04:18 CEST 2007
New submission from David Kågedal:
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.
----------
components: Library (Lib)
messages: 56644
nosy: d_kagedal
severity: normal
status: open
title: os.path.exists(os.devnul) regression on windows
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1311>
__________________________________
More information about the New-bugs-announce
mailing list