]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331) 21333/head
authorInada Naoki <songofacandy@gmail.com>
Sun, 5 Jul 2020 05:28:38 +0000 (14:28 +0900)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 05:28:38 +0000 (14:28 +0900)
PyUnicode_EncodeDecimal is not used actually.

Doc/c-api/long.rst

index bf49aeea288a19e66ce71a83f2689fa1c82ff118..22e59ce1e5357fe8b575aa44e003413ceefc0614 100644 (file)
@@ -96,9 +96,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