Skip to content

Commit

Permalink
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
Browse files Browse the repository at this point in the history
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
  • Loading branch information
methane committed Jul 5, 2020
1 parent 13c90e8 commit 9c84417
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Doc/c-api/long.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,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
Expand Down

0 comments on commit 9c84417

Please sign in to comment.