Author martin.panter
Recipients docs@python, martin.panter, skorpeo
Date 2019-01-03.20:21:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This was changed in Python 3.2+ in Issue 16723. The response object no longer sets the “closed” attribute when it runs out of data; it is only set when the “close” method is called. Perhaps the example should be amended so that it checks if “read” returned an empty string, rather than checking “closed”.

Another problem with the example is that printing the chunk as a bytes object can trigger BytesWarning. I would add a “repr” call to avoid that.
Date User Action Args
2019-01-03 20:21:42martin.pantersetrecipients: + martin.panter, docs@python, skorpeo
2019-01-03 20:21:41martin.pantersetmessageid: <>
2019-01-03 20:21:41martin.panterlinkissue35649 messages
2019-01-03 20:21:40martin.pantercreate