summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-05 04:09:18 (GMT)
committerGitHub <noreply@github.com>2020-07-05 04:09:18 (GMT)
commit4874e5908c38da4c7dcaecf6397832dda1e6dd08 (patch)
tree1251d596c0b7f1e2843aac40574e5aa5330bbe61 /Doc/c-api
parent6857ebefc048e316f948091946d337b5ada807a4 (diff)
downloadcpython-4874e5908c38da4c7dcaecf6397832dda1e6dd08.zip
cpython-4874e5908c38da4c7dcaecf6397832dda1e6dd08.tar.gz
cpython-4874e5908c38da4c7dcaecf6397832dda1e6dd08.tar.bz2
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@gmail.com>
Diffstat (limited to 'Doc/c-api')
-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 a8a91e2..0f5e667 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