[issue13211] urllib2.HTTPError does not have 'reason' attribute.

Petri Lehtinen report at bugs.python.org
Wed Oct 26 08:03:21 CEST 2011


Petri Lehtinen <petri at digip.org> added the comment:

> It appears the Python 3.2 docs no longer include documentation for URLError

Both URLError and HTTPError are documented in 3.2 and 3.3:

http://docs.python.org/py3k/library/urllib.error.html#urllib.error.URLError

http://docs.python.org/dev/library/urllib.error.html#urllib.error.URLError

It needs to be investigated whether each point raising a HTTPError sets a good msg. If this is the case, reason can be aliased to msg.

This could be done for 2.7, too, because this is a bug (deviation from what the documentation says) rather than a new feature.

----------
keywords: +easy
nosy: +petri.lehtinen
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13211>
_______________________________________


More information about the Python-bugs-list mailing list