From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 5 Jul 2020 04:08:39 +0000 (-0700) Subject: bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325) X-Git-Tag: v3.9.0b5~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48f388f02f000fb9087a854c0dc77ce39bc2bb29;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 8ecbe221f2d4..bf49aeea288a 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -108,9 +108,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