[issue15880] os.path.split() and long UNC names

2012-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy claims that the commit of Mark's version of your patch in #5799 fixed this in 3.1. Retesting in IDLE, 3.3, Win7: >>> import os >>> d = '//?/e:/python-test/dir' >>> d = os.path.split(d)[0] >>> d '//?/e:/python-test' >>> d = os.path.split(d)[0] >>> d '//?/

[issue15880] os.path.split() and long UNC names

2012-11-12 Thread Larry Hastings
Larry Hastings added the comment: ISTM that fixing this for 3.x (3? 4?) is worthwhile though. Or did somebody already fix it in 3.x? -- ___ Python tracker ___ _

[issue15880] os.path.split() and long UNC names

2012-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. Larry H.'s patch in #5799 was called an enhancement and is explicitly a replacement for splitunc. The latter was deprecated and may disappear in 3.4. -- resolution: -> wont fix stage: test needed -> committed/rejected status: pending -> closed

[issue15880] os.path.split() and long UNC names

2012-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose to close this issue as "won't fix". A long-UNC prefix support is a new feature and can't be applied to 2.7. As workaround use splitunc() in Python prior to 3.1. -- status: open -> pending ___ Python tr

[issue15880] os.path.split() and long UNC names

2012-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This behavior reproduced only on 2.7. See issue5799 which changed the behavior for 3.1. -- nosy: +larry, mhammond, serhiy.storchaka versions: -Python 3.2, Python 3.3 ___ Python tracker

[issue15880] os.path.split() and long UNC names

2012-11-01 Thread Kevin Chen
Changes by Kevin Chen : -- nosy: +kevin.chen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15880] os.path.split() and long UNC names

2012-10-08 Thread Kushal Das
Kushal Das added the comment: splitunc is deprecated since 3.1. It is also written in the code that "Paths containing drive letters never have an UNC part" -- nosy: +kushaldas ___ Python tracker __

[issue15880] os.path.split() and long UNC names

2012-09-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> test needed type: crash -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue15880] os.path.split() and long UNC names

2012-09-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15880] os.path.split() and long UNC names

2012-09-07 Thread Kalle Rutanen
Kalle Rutanen added the comment: It seems to me that this problem can be fixed by replacing splitdrive with splitunc at line 170 in ntpath.py. -- ___ Python tracker ___

[issue15880] os.path.split() and long UNC names

2012-09-07 Thread Kalle Rutanen
Kalle Rutanen added the comment: By inspecting the code for os.path.split() in ntpath.py, one sees that the problem is actually in os.path.splitdrive(), which does not handle long-UNC paths. -- ___ Python tracker

[issue15880] os.path.split() and long UNC names

2012-09-07 Thread Kalle Rutanen
New submission from Kalle Rutanen: On Windows, long-UNC paths are needed to inspect and modify paths with more than 260 characters. The os.path.split() function behaves incorrectly in the presence of a long-UNC prefix //?/ or \\?\. Consider iterating d = os.path.split(d)[0] with d = '//?/e:/py