Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86861
| From | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| Subject | Re: Reading all buffered bytes without blocking |
| Date | 2015-03-03 21:28 +0200 |
| References | <4ad47d38-bd92-4516-bc60-60fddc9e0666@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.25.1425410913.21433.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reading all buffered bytes without blocking Paul Moore <p.f.moore@gmail.com> - 2015-03-03 08:07 -0800
Re: Reading all buffered bytes without blocking Serhiy Storchaka <storchaka@gmail.com> - 2015-03-03 21:28 +0200
Re: Reading all buffered bytes without blocking Paul Moore <p.f.moore@gmail.com> - 2015-03-03 13:10 -0800
Re: Reading all buffered bytes without blocking wxjmfauth@gmail.com - 2015-03-05 00:41 -0800
Re: Reading all buffered bytes without blocking jornws0718@xs4all.nl (Oscar) - 2015-03-05 11:15 +0000
Re: Reading all buffered bytes without blocking wxjmfauth@gmail.com - 2015-03-05 22:33 -0800
csiph-web