homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:20izbyshevsetrecipients: + izbyshev, direprobs
2017年12月07日 00:13:20izbyshevsetmessageid: <1512605600.58.0.213398074469.issue30718@psf.upfronthosting.co.za>
2017年12月07日 00:13:20izbyshevlinkissue30718 messages
2017年12月07日 00:13:20izbyshevcreate

AltStyle によって変換されたページ (->オリジナル) /