Reading all buffered bytes without blocking
Serhiy Storchaka
storchaka at gmail.com
Tue Mar 3 14:28:24 EST 2015
On 03.03.15 18:07, Paul Moore wrote:
> Is it possible to say to a BufferedReader stream "give me all the bytes you have available in the buffer, or do one OS call and give me everything you get back"? The problem is that the "number of bytes" argument to read1() isn't optional, so I can't do available_bytes = fd.read1().
Just specify large size.
More information about the Python-list
mailing list