STINNER Victor added the comment:

I just commited a change to avoid PyUnicode_GET_SIZE(): this function doesn't 
handle errors very well, if PyUnicode_AsUnicode() fails, the result is zero. 
The caller is unable to know that an error occurred.

http://hg.python.org/cpython/rev/28f71af02b69
"""
Don't use deprecated function PyUnicode_GET_SIZE()

Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
"""

----------

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

Reply via email to