You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. 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`.
PyUnicode_EncodeDecimal is not used actually.
It uses private and undocumented _PyUnicode_TransformDecimalAndSpaceToASCII function instead.
The document of PyFloat_FromString() doesn't mention about how it convert unicode string to digits. Let's remove the second sentence.
Activity
methane commentedon Jul 5, 2020
PyUnicode_EncodeDecimal is not used actually.
It uses private and undocumented
_PyUnicode_TransformDecimalAndSpaceToASCIIfunction instead.The document of PyFloat_FromString() doesn't mention about how it convert unicode string to digits. Let's remove the second sentence.
methane commentedon Jul 5, 2020
New changeset 9c84417 by Inada Naoki in branch 'master':
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
9c84417
miss-islington commentedon Jul 5, 2020
New changeset 48f388f by Miss Islington (bot) in branch '3.9':
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
48f388f
miss-islington commentedon Jul 5, 2020
New changeset 4874e59 by Miss Islington (bot) in branch '3.8':
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
4874e59
methane commentedon Jul 5, 2020
New changeset 16f4517 by Inada Naoki in branch '3.9':
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
16f4517
miss-islington commentedon Jul 5, 2020
New changeset 01c0925 by Miss Islington (bot) in branch '3.8':
bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
01c0925