Message193679
Ah, well. This is already fixed, then:
Python 3.4.0a0 (default:ae769deb45b2, Jul 20 2013, 19:28:41)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> raw = io.BytesIO(bytes(200))
>>> buffered = io.BufferedReader(raw, 10)
>>> while True:
... buf = buffered.read1(20)
... print("Got %d bytes" % len(buf))
... if not buf:
... break
...
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 20 bytes
Got 0 bytes
However, 3.2 didn't get that improvement, sorry. See changeset 27bf3d0b8e5f and issue #13393. |
|
Date |
User |
Action |
Args |
2013-07-24 22:04:19 | pitrou | set | recipients:
+ pitrou, benjamin.peterson, stutzbach, r.david.murray, nikratio, hynek, serhiy.storchaka |
2013-07-24 22:04:19 | pitrou | set | messageid: <1374703459.4.0.166314053955.issue18524@psf.upfronthosting.co.za> |
2013-07-24 22:04:19 | pitrou | link | issue18524 messages |
2013-07-24 22:04:19 | pitrou | create | |
|