[Python-checkins] bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)

Miss Islington (bot) webhook-mailer at python.org
Sun Jul 5 00:09:22 EDT 2020


https://github.com/python/cpython/commit/4874e5908c38da4c7dcaecf6397832dda1e6dd08
commit: 4874e5908c38da4c7dcaecf6397832dda1e6dd08
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-07-04T21:09:18-07:00
summary:

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


It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d)

Co-authored-by: Inada Naoki <songofacandy at gmail.com>

files:
M Doc/c-api/long.rst

diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index a8a91e2678413..0f5e667a45c27 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -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
 



More information about the Python-checkins mailing list