[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"
New submission from Alex Willmer: issue13211 added a .reason attribute to urllib2.HTTPError in Python 2.7, issue16634 documented it (http://hg.python.org/cpython/rev/deb60efd32eb). The documentation for Python 2.7 doesn't mention that this attribute was added in that release. This (at least weakly) implies it's available to use in previous 2.x releases. ---------- assignee: docs@python components: Documentation files: HTTPError.reason-versionadded.diff keywords: patch messages: 204465 nosy: docs@python, moreati priority: normal severity: normal status: open title: urllib2.HTTPError.reason is not documented as "Added in 2.7" type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file32855/HTTPError.reason-versionadded.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19796> _______________________________________
Mark Lawrence added the comment: The patch just adds the version added tag to urllib2.rst. Can someone commit this please. ---------- nosy: +BreamoreBoy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19796> _______________________________________
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- nosy: +berker.peksag stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19796> _______________________________________
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- nosy: +orsenthil _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19796> _______________________________________
Berker Peksag added the comment: issue 13211 was about a bug in exception hierarchy of the urllib2 module(not an addition to the public API - see msg147318 for detailed explanation). I don't think we need to update documentation. ---------- resolution: -> wont fix stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19796> _______________________________________
participants (3)
-
Alex Willmer -
Berker Peksag -
Mark Lawrence