mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
* PyUnicode_AsUTF8() now raises an exception if the string contains embedded null characters. * Update related C API tests (test_capi.test_unicode). * type_new_set_doc() uses PyUnicode_AsUTF8AndSize() to silently truncate doc containing null bytes. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 lines
138 B
ReStructuredText
2 lines
138 B
ReStructuredText
The :c:func:`PyUnicode_AsUTF8` function now raises an exception if the
|
|
string contains embedded null characters. Patch by Victor Stinner.
|