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 calvin
Recipients calvin
Date 2011-03-11.13:47:41
SpamBayes Score 6.42513e-06
Marked as misclassified No
Message-id <>
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='javascript', netloc='', path='123', query='', fragment='')

$ python2.7 -c "import urlparse; print urlparse.urlsplit('javascript:123')"
SplitResult(scheme='', netloc='', path='javascript:123', query='', fragment='')

Python 3.2 has the same regression:
$ python3.2 -c "import urllib.parse; print(urllib.parse.urlsplit('javascript:123'))"
SplitResult(scheme='', netloc='', path='javascript:123', query='', fragment='')

I consider the Python 2.6 behaviour to be correct, ie. the current behaviour is buggy.
Date User Action Args
2011-03-11 13:47:42calvinsetrecipients: + calvin
2011-03-11 13:47:42calvinsetmessageid: <>
2011-03-11 13:47:41calvinlinkissue11467 messages
2011-03-11 13:47:41calvincreate