New submission from Bastian Kleineidam :
Python 2.7 on Windows converts the URL path '/C|/' to a naked drive letter 'C:'.
C:\src>c:\Python27\python.exe -c "import urllib;print
urllib.url2pathname('/C|/')"
C:
C:\src>
Expected and I believe the
Bastian Kleineidam added the comment:
To make the previous comment more precise: URLs where
the scheme specific part begins with a digit are affected.
--
___
Python tracker
<http://bugs.python.org/issue11
Bastian Kleineidam added the comment:
Regarding the correctness of the Python 2.6 implementation:
http://www.faqs.org/rfcs/rfc1738.html specifies URLs of the form
: where the scheme specific part is allowed to
consist only of digits.
I agree that the example URL is not a good one and it is
Bastian Kleineidam added the comment:
The behaviour change is caused by the fix for issue #754016.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Bastian Kleineidam :
--
versions: +Python 3.2
___
Python tracker
<http://bugs.python.org/issue11467>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Bastian Kleineidam :
When using a javascript URL with only digits as paths, the urlsplit() functions
behaves different in Python 2.7 than in 2.6:
$ python2.6 -c "import urlparse; print urlparse.urlsplit('javascript:123')"
SplitResult(scheme='jav
Bastian Kleineidam added the comment:
Update: the python2.5 behaviour is the expected and what I think the correct
output.
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue9
New submission from Bastian Kleineidam :
The urljoin() implementation cuts off the last base URL
character if the URL to join starts with a semicolon.
Expected output is no cut off characters.
$ python2.6
Python 2.6.6 (r266:84292, Aug 29 2010, 12:36:23)
[GCC 4.4.5 20100824 (prerelease)] on