[issue37348] add _PyUnicode_FROM_ASCII macro

Inada Naoki report at bugs.python.org
Thu Jun 20 08:39:17 EDT 2019


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

Should we make these APIs public?

* rename `_PyUnicode_FromASCII` to `PyUnicode_FromASCIIAndSize`.
* add `PyUnicode_FromASCII` as static inline function (without ABI).
* add `#define _PyUnicode_FromASCII PyUnicode_FromASCIIAndSize` for source code compatibility.

----------

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


More information about the Python-bugs-list mailing list