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 pitrou
Recipients Arfrever, ncoghlan, pitrou, serhiy.storchaka
Date 2012-06-30.12:39:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341059965.48.0.0987968142229.issue15216@psf.upfronthosting.co.za>
In-reply-to
Content
> The proposal [1] is that TextIOWrapper support a set_encoding() method 
> that is only supported between creation of the stream and the first
> read or write operation.

That will be fragile. A bit of prematurate input or output (for whatever reason) and your program breaks.
History
Date User Action Args
2012-06-30 12:39:25pitrousetrecipients: + pitrou, ncoghlan, Arfrever, serhiy.storchaka
2012-06-30 12:39:25pitrousetmessageid: <1341059965.48.0.0987968142229.issue15216@psf.upfronthosting.co.za>
2012-06-30 12:39:24pitroulinkissue15216 messages
2012-06-30 12:39:24pitroucreate