[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-07-31 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Followed Amaury's suggestion in r83368.  \\.\ and \\?\ as prefixes now cause 
normpath() to return the argument as-is.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

This bug does not exhibit in Python 3.1.1.

--
nosy: +jaraco
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

Attaching a test against trunk which elicits the error reported in this bug.

--
keywords: +patch
Added file: http://bugs.python.org/file16419/issue7909-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Shashwat Anand

Shashwat Anand anand.shash...@gmail.com added the comment:

Seems fine to me, does not raise any errors. My OS is OS X Snow Leopard. I 
checked it in python 2.5, 2.6, 2.7 too, no issues raised.

Shashwat-Anands-MacBook-Pro:test l0nwlf$ python2.6
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type help, copyright, credits or license for more information.
 import os,logging
 logging.basicConfig(level=logging.CRITICAL,
... format='%(asctime)s %(levelname)-8s %(message)s',
... datefmt='%a, %d %b %Y %H:%M:%S',
... filename=os.devnull,
... filemode='w')


--
nosy: +l0nwlf

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

From the bug report, it look likes its specific to windows, not OS X.

--
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

nul is a special dos device
_getfullpathname() correctly returns \\.\nul, but normpath() then simplifies it 
to \\nul

I suggest that normpath() be changed to consider \\.\ as a special prefix, and 
keep it intact when it appears at the start of the path. See also
http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

--
keywords: +easy
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-11 Thread Arno Bakker

New submission from Arno Bakker abak...@users.sourceforge.net:

I encountered this when somebody used:

logging.basicConfig(level=logging.CRITICAL,
format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename=os.devnull,
filemode='w')

the logging code apparently calls os.path.abspath(filename) somewhere,
causing an exception:
 File c:\python264\lib\logging\__init__.py, line 838, in _open
   stream = open(self.baseFilename, self.mode)
   IOError: [Errno 2] No such file or directory: 'nul'

--
components: Windows
messages: 99212
nosy: abakker
severity: normal
status: open
title: os.path.abspath(os.devnull) returns nul should be nul?
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
priority:  - normal
stage:  - test needed
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com