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 srittau
Date 2016-01-15.13:10:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452863403.25.0.433090378442.issue26123@psf.upfronthosting.co.za>
In-reply-to
Content
The HTTP status code constants in Python 3.5 http.client are not compatible with the constants in Python 3.4, since the str() behaviour is different. This breaks code: 

srittau@moby:~$ python3.5
Python 3.5.1+ (default, Jan 13 2016, 15:09:18) 
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import http.client
>>> str(http.client.OK)
'HTTPStatus.OK'

vs:

rittau@moby:~$ python3.4
Python 3.4.4 (default, Jan  5 2016, 15:35:18) 
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import http.client
>>> str(http.client.OK)
'200'
History
Date User Action Args
2016-01-15 13:10:03srittausetrecipients: + srittau
2016-01-15 13:10:03srittausetmessageid: <1452863403.25.0.433090378442.issue26123@psf.upfronthosting.co.za>
2016-01-15 13:10:03srittaulinkissue26123 messages
2016-01-15 13:10:02srittaucreate