This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdeibel
Recipients
Date 2004-11-17.04:00:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=12608

The c:\\x\y\z case was broken up to 2.3.4 but appears fixed
in 2.4b2, as you noticed (it used to return "c:\\\\x\\y\\z"
and now returns "c:\\x\\y\\z" as it
should).

However in 2.4b4 the \\x\y\z case still returns
"\\\\x\\y\\z" (it
returns any number of leading backslashes unchanged, no
matter how 
many are passed in):

>>> os.path.normpath(r"\\x\y\z")
'\\\\x\\y\\z'
>>> os.path.normpath(r"\\\x\y\z")
'\\\\\\x\\y\\z'

I'm still fairly sure it should return "\\x\\y\\z" instead
as the more appropriate 
normalization of this kind of path on win32.

Hope that helps!  Thanks for your work on clearing the bug list!
History
Date User Action Args
2007-08-23 14:09:54adminlinkissue665336 messages
2007-08-23 14:09:54admincreate