bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)

It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
This commit is contained in:
Inada Naoki 2020-07-05 13:01:48 +09:00 committed by GitHub
parent 13c90e82b6
commit 9c84417122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -97,9 +97,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
.. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
Convert a sequence of Unicode digits in the string *u* to a Python integer
value. The Unicode string is first encoded to a byte string using
:c:func:`PyUnicode_EncodeDecimal` and then converted using
:c:func:`PyLong_FromString`.
value.
.. versionadded:: 3.3