Message130570
| Author |
calvin |
| Recipients |
calvin |
| Date |
2011年03月11日.13:47:41 |
| SpamBayes Score |
6.4251253e-06 |
| Marked as misclassified |
No |
| Message-id |
<1299851262.1.0.3225912326.issue11467@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年03月11日 13:47:42 | calvin | set | recipients:
+ calvin |
| 2011年03月11日 13:47:42 | calvin | set | messageid: <1299851262.1.0.3225912326.issue11467@psf.upfronthosting.co.za> |
| 2011年03月11日 13:47:41 | calvin | link | issue11467 messages |
| 2011年03月11日 13:47:41 | calvin | create |
|