Skip to content

Commit f8d8644

Browse files
committed
Add missing PyUnicode_GetDefaultEncoding function documentation
1 parent e2064d6 commit f8d8644

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/c-api/unicode.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,11 @@ APIs:
612612
decref'ing the returned objects.
613613
614614
615+
.. c:function:: const char* PyUnicode_GetDefaultEncoding(void)
616+
617+
Return the default encoding format of the string.
618+
619+
615620
.. c:function:: Py_ssize_t PyUnicode_GetLength(PyObject *unicode)
616621
617622
Return the length of the Unicode object, in code points.

Doc/data/refcounts.dat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,9 @@ PyUnicode_FromFormatV:PyObject*::+1:
27502750
PyUnicode_FromFormatV:const char*:format::
27512751
PyUnicode_FromFormatV:va_list:args::
27522752

2753+
PyUnicode_GetDefaultEncoding:const char*:::
2754+
PyUnicode_GetDefaultEncoding::void::
2755+
27532756
PyUnicode_GetLength:Py_ssize_t:::
27542757
PyUnicode_GetLength:PyObject*:unicode:0:
27552758

0 commit comments

Comments
 (0)