]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jul 2020 05:35:58 +0000 (22:35 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 05:35:58 +0000 (22:35 -0700)
PyUnicode_EncodeDecimal is not used actually.
(cherry picked from commit 16f451744b7f4653ca9db4b4bedbb6fc5c0de154)

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

index 0f5e667a45c27baa0c3f84ab46e32adeeeffb844..3bada415aa37eff10d3061556c730e876f0b2f3b 100644 (file)
@@ -98,9 +98,7 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
 
 .. c:function:: PyObject* PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base)
 
-   Convert a sequence of Unicode digits 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`.
+   Convert a sequence of Unicode digits to a Python integer value.
 
    .. deprecated-removed:: 3.3 3.10
       Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using