[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

Inada Naoki report at bugs.python.org
Sat Mar 14 00:24:17 EDT 2020


Inada Naoki <songofacandy at gmail.com> added the comment:

I'm sorry about merging PR 18327, but I can not find enough usage example of the _PyUnicode_GetUTF8Buffer.

PyUnicode_AsUTF8AndSize is optimized, and utf8_cache is not so bad in most case.  So _PyUnicode_GetUTF8Buffer seems not worth enough.

I will revert PR 18327.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39087>
_______________________________________


More information about the Python-bugs-list mailing list