Author martin.panter
Recipients giampaolo.rodola, irmen, loewis, martin.panter, pitrou, vstinner
Date 2015-11-10.02:44:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I can’t say I’ve often wanted this kind of method for socket objects. I guess this would treat a zero-length message (e.g. UDP datagram) as end-of-stream. Maybe it would be more useful as a general function or method for RawIOBase (maybe also BufferedIOBase) streams.

As for the exception, I have used the existing EOFError in the past for similar purposes. After all, an unexpected EOF error at a low level often means an incomplete or truncated data error at a higher level.
Date User Action Args
2015-11-10 02:44:21martin.pantersetrecipients: + martin.panter, loewis, irmen, pitrou, vstinner, giampaolo.rodola
2015-11-10 02:44:21martin.pantersetmessageid: <>
2015-11-10 02:44:21martin.panterlinkissue1103213 messages
2015-11-10 02:44:19martin.pantercreate