[New-bugs-announce] [issue1311] os.path.exists(os.devnul) regression on windows
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)
title: os.path.exists(os.devnul) regression on windows
versions: Python 2.5
Tracker <report at bugs.python.org>
More information about the New-bugs-announce