STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Fixed in Python 3.3: r88708 removes errors argument of 
_PyUnicode_AsDefaultEncodedString(), r88709 caches the result of str.encode().

> replace all uses of _PyUnicode_AsDefaultEncodedString()
> with PyUnicode_AsUTF8String()

It makes the code more complex because PyUnicode_AsUTF8String() increments the 
reference counter. I prefer to keep _PyUnicode_AsDefaultEncodedString().

----------

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

Reply via email to