Message307779
Yes, clarifying buffering for text mode in open() would be nice.
@direprobs: just in case you didn't know, you can achieve what you want with something like the following in pre-3.7:
with open("/dev/null", "wb", buffering=10) as outb, \
io.TextIOWrapper(outb, write_through=True) as out:
out.write("x" * 20)
Sadly, write_through can't be passed to open(), but it can be changed on existing TextIOWrapper since 3.7 (via new reconfigure() method). |
|
Date |
User |
Action |
Args |
2017-12-07 00:13:20 | izbyshev | set | recipients:
+ izbyshev, direprobs |
2017-12-07 00:13:20 | izbyshev | set | messageid: <1512605600.58.0.213398074469.issue30718@psf.upfronthosting.co.za> |
2017-12-07 00:13:20 | izbyshev | link | issue30718 messages |
2017-12-07 00:13:20 | izbyshev | create | |
|