mirror of
https://github.com/python/cpython.git
synced 2025-08-19 16:20:59 +00:00
gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040)
(cherry picked from commit 8768df2fe9
)
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
This commit is contained in:
parent
d321b6ec82
commit
866b6359e5
2 changed files with 11 additions and 0 deletions
|
@ -589,6 +589,14 @@ APIs:
|
||||||
Objects other than Unicode or its subtypes will cause a :exc:`TypeError`.
|
Objects other than Unicode or its subtypes will cause a :exc:`TypeError`.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:function:: PyObject* PyUnicode_FromOrdinal(int ordinal)
|
||||||
|
|
||||||
|
Create a Unicode Object from the given Unicode code point *ordinal*.
|
||||||
|
|
||||||
|
The ordinal must be in ``range(0x110000)``. A :exc:`ValueError` is
|
||||||
|
raised in the case it is not.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, \
|
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, \
|
||||||
const char *encoding, const char *errors)
|
const char *encoding, const char *errors)
|
||||||
|
|
||||||
|
|
|
@ -2756,6 +2756,9 @@ PyUnicode_FromFormatV:PyObject*::+1:
|
||||||
PyUnicode_FromFormatV:const char*:format::
|
PyUnicode_FromFormatV:const char*:format::
|
||||||
PyUnicode_FromFormatV:va_list:args::
|
PyUnicode_FromFormatV:va_list:args::
|
||||||
|
|
||||||
|
PyUnicode_FromOrdinal:PyObject*::+1:
|
||||||
|
PyUnicode_FromOrdinal:int:ordinal::
|
||||||
|
|
||||||
PyUnicode_GetDefaultEncoding:const char*:::
|
PyUnicode_GetDefaultEncoding:const char*:::
|
||||||
PyUnicode_GetDefaultEncoding::void::
|
PyUnicode_GetDefaultEncoding::void::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue