Author Oren Milman
Recipients Oren Milman, benjamin.peterson, ncoghlan, serhiy.storchaka, veky
Date 2017-10-03.06:57:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507013878.42.0.213398074469.issue31271@psf.upfronthosting.co.za>
In-reply-to
Content
I am not sure, but ISTM that it isn't possible for the encoder to return a
unicode and not fail later.
This is because _textiowrapper_writeflush() would call _io.BytesIO.write()
(after it called _PyBytes_Join()), and bytesio_write() calls PyObject_GetBuffer(),
which would raise "TypeError: 'unicode' does not have the buffer interface".
History
Date User Action Args
2017-10-03 06:57:58Oren Milmansetrecipients: + Oren Milman, ncoghlan, benjamin.peterson, serhiy.storchaka, veky
2017-10-03 06:57:58Oren Milmansetmessageid: <1507013878.42.0.213398074469.issue31271@psf.upfronthosting.co.za>
2017-10-03 06:57:58Oren Milmanlinkissue31271 messages
2017-10-03 06:57:58Oren Milmancreate