]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jul 2020 04:09:18 +0000 (21:09 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 04:09:18 +0000 (21:09 -0700)
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Doc/c-api/long.rst

index a8a91e2678413c42e6313a26b275e263ee5dac68..0f5e667a45c27baa0c3f84ab46e32adeeeffb844 100644 (file)
@@ -110,9 +110,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