[issue26123] http.client status code constants incompatible with Python 3.4

Martin Panter report at bugs.python.org
Fri Jan 15 17:24:06 EST 2016


Martin Panter added the comment:

This affected the HTTP server log messages, discussed from <https://bugs.python.org/issue21793#msg235547> onwards. The first three patches proposed changed the HTTPStatus.__str__() implementation, which would have avoided the problem in general. But Demian’s final patch made a special case of checking for HTTPStatus objects in the logging code instead.

IMO it may have been better to change HTTPStatus.__str__() to use int.__str__() at the time.

----------
nosy: +martin.panter

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


More information about the Python-bugs-list mailing list