Skip to content

Commit 20d5076

Browse files
methaneshihai1991
authored andcommitted
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (pythonGH-21325)
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
1 parent 4ecd411 commit 20d5076

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎Doc/c-api/long.rst‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
9797
.. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
9898
9999
Convert a sequence of Unicode digits in the string *u* to a Python integer
100-
value. The Unicode string is first encoded to a byte string using
101-
:c:func:`PyUnicode_EncodeDecimal` and then converted using
102-
:c:func:`PyLong_FromString`.
100+
value.
103101
104102
.. versionadded:: 3.3
105103

0 commit comments

Comments
 (0)