[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why not have a recvall method?

Hello, allThe socket object has a `sendall` method that can send all bytes you specified. Oppositely, socket only has
a recv method. I wonder why there is not a `recvall` method?
To workaround this, I use `f = socket.makefile('rb')`, then `call f.read(n)`