[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2019-11-15 Thread Batuhan
Batuhan added the comment: IMHO there is no need/way for adding that clarification after this date (1.5 months left). -- nosy: +BTaskaya, benjamin.peterson ___ Python tracker

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2018-06-02 Thread Egor Dranischnikow
New submission from Egor Dranischnikow : The C-API for Python2.7 https://docs.python.org/2/c-api/bytearray.html#c.PyByteArray_AsString lacks the sentence: "The returned array always has an extra null byte appended." which clarifies, that the returned C-string is null-terminated. This