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

Inada Naoki webhook-mailer at python.org
Sun Jul 5 00:01:52 EDT 2020


https://github.com/python/cpython/commit/9c8441712230660fedac818ed50e7cdd89e4c51d
commit: 9c8441712230660fedac818ed50e7cdd89e4c51d
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-07-05T13:01:48+09:00
summary:

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

It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.

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

diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 3921a93843e42..4d859fb641df3 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -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
 



More information about the Python-checkins mailing list