Skip to content

Commit 866b635

Browse files
vstinnerrruuaanng
andauthored
[3.13] gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040) (#132521)
gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040) (cherry picked from commit 8768df2) Co-authored-by: RUANG (James Roy) <[email protected]>
1 parent d321b6e commit 866b635

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: Doc/c-api/unicode.rst

+8
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,14 @@ APIs:
589589
Objects other than Unicode or its subtypes will cause a :exc:`TypeError`.
590590
591591
592+
.. c:function:: PyObject* PyUnicode_FromOrdinal(int ordinal)
593+
594+
Create a Unicode Object from the given Unicode code point *ordinal*.
595+
596+
The ordinal must be in ``range(0x110000)``. A :exc:`ValueError` is
597+
raised in the case it is not.
598+
599+
592600
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, \
593601
const char *encoding, const char *errors)
594602

Diff for: Doc/data/refcounts.dat

+3
Original file line numberDiff line numberDiff line change
@@ -2756,6 +2756,9 @@ PyUnicode_FromFormatV:PyObject*::+1:
27562756
PyUnicode_FromFormatV:const char*:format::
27572757
PyUnicode_FromFormatV:va_list:args::
27582758

2759+
PyUnicode_FromOrdinal:PyObject*::+1:
2760+
PyUnicode_FromOrdinal:int:ordinal::
2761+
27592762
PyUnicode_GetDefaultEncoding:const char*:::
27602763
PyUnicode_GetDefaultEncoding::void::
27612764

0 commit comments

Comments
 (0)