[docs] [issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

Serhiy Storchaka report at bugs.python.org
Tue Mar 10 12:16:40 CET 2015

Serhiy Storchaka added the comment:

There are other functions that returns null terminated data: PyByteArray_AsString(), PyBytes_AsStringAndSize(), PyUnicode_AS_UNICODE(), PyUnicode_AsUCS4Copy() PyUnicode_AsUnicode(), PyUnicode_AsUnicodeAndSize(), PyUnicode_AsWideCharString() and may be more. See also examples of notes about embedded null characters.

And for consistency with all other documentation this should be written as "null byte/character", not NUL.


Python tracker <report at bugs.python.org>

More information about the docs mailing list