Message307779
| Author |
izbyshev |
| Recipients |
direprobs, izbyshev |
| Date |
2017年12月07日.00:13:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1512605600.58.0.213398074469.issue30718@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|
History
|
|---|
| 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 |
|