Message303579
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". |
|
Date |
User |
Action |
Args |
2017-10-03 06:57:58 | Oren Milman | set | recipients:
+ Oren Milman, ncoghlan, benjamin.peterson, serhiy.storchaka, veky |
2017-10-03 06:57:58 | Oren Milman | set | messageid: <1507013878.42.0.213398074469.issue31271@psf.upfronthosting.co.za> |
2017-10-03 06:57:58 | Oren Milman | link | issue31271 messages |
2017-10-03 06:57:58 | Oren Milman | create | |
|