STINNER Victor added the comment:

PyUnicode_DecodeCharmap() still uses _PyUnicodeWriter_Prepare() (even with my 
patch). It may be interesting to benchmark min_length vs prepare. If min_length 
is not slower, it should be used instead of prepare to avoid widen the buffer 
if the first written character is non-ASCII, b'\x80'.decode('cp1252') for 
example.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to