Marc-Andre Lemburg <m...@egenix.com> added the comment: STINNER Victor wrote: > > STINNER Victor <victor.stin...@haypocalc.com> added the comment: > > New version of the patch: > - charbuffer_encode() uses y* instead of y# format to accept modifiable > buffer objects (eg. bytearray) > - Improve the documentation about the change > > @lemburg: So, do you agree with my patch?
No, because y*/y# are not correct replacements for t#. They don't accept Unicode objects. t# was meant to provide access to text data, so replacing it with a parser code that is meant for binary data is not correct. The closes Python3 gets to t# from Python2 is s# or s*, so please use those in the NEWS entry and s* in charbuffer_encode(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8839> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com