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.

Title: Typo in urllib documentation
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: Claudiu.Popa, docs@python, eric.araujo, ezio.melotti, python-dev
Priority: normal Keywords: patch

Created on 2013-12-06 10:46 by Claudiu.Popa, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
urllib2.patch Claudiu.Popa, 2013-12-06 10:46 review
issue19906.diff ezio.melotti, 2014-01-19 08:23
Messages (6)
msg205359 - (view) Author: PCManticore (Claudiu.Popa) * (Python triager) Date: 2013-12-06 10:46
In the first note from urllib.rst, there is a reference to urllib being replaced by urllib2 in Python 3, which is False.
msg205389 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-12-06 17:33
msg208463 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-01-19 08:23
I think that what the note was trying to say is that urlopen in Python 3 is equivalent to urllib2.urlopen in Python 2, so before switching to Python 3, people might want to move from urllib.urlopen to urllib2.urlopen.
Does the attached patch sound better?
msg208493 - (view) Author: PCManticore (Claudiu.Popa) * (Python triager) Date: 2014-01-19 19:13
Yep, it sounds better. There's an additional warning in urllib.urlopen which states a similar thing:

    warnpy3k("urllib.urlopen() has been removed in Python 3.0 in "
             "favor of urllib2.urlopen()", stacklevel=2)
msg210805 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-02-10 07:59
New changeset 2ac7551986ba by Ezio Melotti in branch '2.7':
#19906: clarify note in urllib docs.
msg210806 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-02-10 08:00
Fixed, thanks for the report and the initial patch!
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64105
2014-02-10 08:00:05ezio.melottisetstatus: open -> closed
messages: + msg210806

assignee: docs@python -> ezio.melotti
resolution: fixed
stage: commit review -> resolved
2014-02-10 07:59:17python-devsetnosy: + python-dev
messages: + msg210805
2014-01-19 19:13:27Claudiu.Popasetmessages: + msg208493
2014-01-19 08:23:11ezio.melottisetfiles: + issue19906.diff

messages: + msg208463
2013-12-06 17:33:01eric.araujosetnosy: + ezio.melotti, eric.araujo

messages: + msg205389
stage: commit review
2013-12-06 10:46:04Claudiu.Popacreate