summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-07-05 13:01:48 +0900
committerGitHub <noreply@github.com>2020-07-05 13:01:48 +0900
commit9c8441712230660fedac818ed50e7cdd89e4c51d (patch)
tree53ddde71b48a605ae946fd603385b468c0f98b73
parent13c90e82b6a1c3baff7f48f1bdc38058f6072f04 (diff)
downloadcpython-git-9c8441712230660fedac818ed50e7cdd89e4c51d.tar.gz
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
-rw-r--r--Doc/c-api/long.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 3921a93843..4d859fb641 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