diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-07-05 05:28:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 05:28:38 (GMT) |
commit | 16f451744b7f4653ca9db4b4bedbb6fc5c0de154 (patch) | |
tree | 7b599e2567dc04b8fb148a5f06ab6b5a342bd8c0 | |
parent | 48f388f02f000fb9087a854c0dc77ce39bc2bb29 (diff) | |
download | cpython-16f451744b7f4653ca9db4b4bedbb6fc5c0de154.zip cpython-16f451744b7f4653ca9db4b4bedbb6fc5c0de154.tar.gz cpython-16f451744b7f4653ca9db4b4bedbb6fc5c0de154.tar.bz2 |
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
PyUnicode_EncodeDecimal is not used actually.
-rw-r--r-- | Doc/c-api/long.rst | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index bf49aee..22e59ce 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -96,9 +96,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate. .. c:function:: PyObject* PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base) - Convert a sequence of Unicode digits 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`. + Convert a sequence of Unicode digits to a Python integer value. .. deprecated-removed:: 3.3 3.10 Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using |