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 srittau
Recipients ethan.furman, serhiy.storchaka, srittau
Date 2016-01-15.16:59:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452877160.38.0.715490142301.issue26123@psf.upfronthosting.co.za>
In-reply-to
Content
It is no doubt that is easy to work around. Once I found the problem it took about five minutes to fix it and roll a new release. And of course for Python 3.5+ code it is better to use the enum http.HTTPStatus directly (I actually like that enum a lot). But this breaks existing code that should not break. It might be too late to change now, though.

As a side note, I would also have preferred str(HTTPStatus.OK) to return "OK" or "200" - the latter would mirror default format behaviour - instead of "HTTPStatus.OK", but this may be too late as well.
History
Date User Action Args
2016-01-15 16:59:20srittausetrecipients: + srittau, ethan.furman, serhiy.storchaka
2016-01-15 16:59:20srittausetmessageid: <1452877160.38.0.715490142301.issue26123@psf.upfronthosting.co.za>
2016-01-15 16:59:20srittaulinkissue26123 messages
2016-01-15 16:59:19srittaucreate