[New-bugs-announce] [issue8043] ntpath.realpath munges os.devnull

Jason R. Coombs report at bugs.python.org
Tue Mar 2 23:52:05 CET 2010


New submission from Jason R. Coombs <jaraco at jaraco.com>:

On Python 2.6 and Python 2.7a, calling ntpath.realpath(os.devnull) returns '\\\\nul' (two backslashes followed by nul), which is not a valid filename.

This appears to have been fixed in Python 3.1, as on 3.1.1, ntpath.realpath(os.devnull) returns '\\\\.\\nul' which apparently is the absolute path to the NULL file handle.

----------
components: Windows
messages: 100314
nosy: jaraco
severity: normal
status: open
title: ntpath.realpath munges os.devnull
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8043>
_______________________________________


More information about the New-bugs-announce mailing list