Skip to content

Commit 16f4517

Browse files
authored
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
PyUnicode_EncodeDecimal is not used actually.
1 parent 48f388f commit 16f4517

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Doc/c-api/long.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
9696
9797
.. c:function:: PyObject* PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base)
9898
99-
Convert a sequence of Unicode digits to a Python integer value. The Unicode
100-
string is first encoded to a byte string using :c:func:`PyUnicode_EncodeDecimal`
101-
and then converted using :c:func:`PyLong_FromString`.
99+
Convert a sequence of Unicode digits to a Python integer value.
102100
103101
.. deprecated-removed:: 3.3 3.10
104102
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using

0 commit comments

Comments
 (0)