This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2013-11-13.13:23:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384348984.36.0.222392544501.issue19569@psf.upfronthosting.co.za>
In-reply-to
Content
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()
"""
History
Date User Action Args
2013-11-13 13:23:04vstinnersetrecipients: + vstinner
2013-11-13 13:23:04vstinnersetmessageid: <1384348984.36.0.222392544501.issue19569@psf.upfronthosting.co.za>
2013-11-13 13:23:04vstinnerlinkissue19569 messages
2013-11-13 13:23:04vstinnercreate