STINNER Victor added the comment: I would be nice to share as much code as possible with the Unicode implementation. My idea was to add a "_PyBytesWriter" API, very close to the "_PyUnicodeWriter", to share code. Old patch implementing the _PyBytesWriter API: issue #17742 (rejected because it was less efficient, the compiler produces less efficient machine code).
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20284> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com