Message376978
I agree about PyUnicode_AsUTF8.
But I think it would be worth to ask PyPy team about PyUnicode_AsUTF8AndSize.
An alternate C API is PyUnicode_GetUTF8Buffer (issue39087). It requires explicit releasing the buffer after use, so it can be used even on implementations with moving garbage collector. |
|
Date |
User |
Action |
Args |
2020-09-16 07:37:21 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, alex, methane |
2020-09-16 07:37:21 | serhiy.storchaka | set | messageid: <1600241841.9.0.966567337491.issue41784@roundup.psfhosted.org> |
2020-09-16 07:37:21 | serhiy.storchaka | link | issue41784 messages |
2020-09-16 07:37:21 | serhiy.storchaka | create | |
|