Message237747
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. |
|
Date |
User |
Action |
Args |
2015-03-10 11:16:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, docs@python, martin.panter |
2015-03-10 11:16:40 | serhiy.storchaka | set | messageid: <1425986200.75.0.967310631185.issue23088@psf.upfronthosting.co.za> |
2015-03-10 11:16:40 | serhiy.storchaka | link | issue23088 messages |
2015-03-10 11:16:40 | serhiy.storchaka | create | |
|