]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
authorInada Naoki <songofacandy@gmail.com>
Sun, 5 Jul 2020 04:01:48 +0000 (13:01 +0900)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 04:01:48 +0000 (13:01 +0900)
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.

Doc/c-api/long.rst

index 3921a93843e422712aab3fbc57848607c009f8b9..4d859fb641df3dc4e4adc656d938e7706ae72625 100644 (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