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 Ivan.Ivanenko
Recipients Ivan.Ivanenko
Date 2011-03-28.21:23:30
SpamBayes Score 6.486914e-05
Marked as misclassified No
Message-id <1301347412.09.0.984655654688.issue11703@psf.upfronthosting.co.za>
In-reply-to
Content
result = urllib.urlopen("http://docs.python.org/library/urllib.html#OK")
print result.geturl()

result = urllib2.urlopen("http://docs.python.org/library/urllib.html#OK")
print result.geturl()

Python 2.6 returns:
"http://docs.python.org/library/urllib.html#OK"
"http://docs.python.org/library/urllib.html#OK"

Python 2.7 returns:
"http://docs.python.org/library/urllib.html#OK"
"http://docs.python.org/library/urllib.html"

2to3 -w test.py
Python 3 returns:
"http://docs.python.org/library/urllib.html"
"http://docs.python.org/library/urllib.html"

I expect geturl() result with "#OK" in all cases
History
Date User Action Args
2011-03-28 21:23:32Ivan.Ivanenkosetrecipients: + Ivan.Ivanenko
2011-03-28 21:23:32Ivan.Ivanenkosetmessageid: <1301347412.09.0.984655654688.issue11703@psf.upfronthosting.co.za>
2011-03-28 21:23:30Ivan.Ivanenkolinkissue11703 messages
2011-03-28 21:23:30Ivan.Ivanenkocreate