mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c84417122
)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
9c38408708
commit
48f388f02f
1 changed files with 1 additions and 3 deletions
|
@ -108,9 +108,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
|
||||||
.. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
|
.. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
|
||||||
|
|
||||||
Convert a sequence of Unicode digits in the string *u* to a Python integer
|
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
|
value.
|
||||||
:c:func:`PyUnicode_EncodeDecimal` and then converted using
|
|
||||||
:c:func:`PyLong_FromString`.
|
|
||||||
|
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue