[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2016-04-08 Thread Paul Sokolovsky
Changes by Paul Sokolovsky : -- nosy: +pfalcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-11-09 Thread Martin Panter
Martin Panter added the comment: 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) st

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-09-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Oh, in fact recvall() is a bad name. The io module uses the "readall()" name to really read all content of a file, whereas "recvall(N)" here only read up to N bytes. It would be better to reuse the same name than asyncio, "readexactly(N)": https://docs.python.