bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)

PyUnicode_EncodeDecimal is not used actually.
(cherry picked from commit 16f451744b)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-07-04 22:35:58 -07:00 committed by GitHub
parent 4874e5908c
commit 01c0925271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -98,9 +98,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