summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/long.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-10-07 09:19:11 (GMT)
committerGeorg Brandl <georg@python.org>2011-10-07 09:19:11 (GMT)
commitdb6c7f5c33ba4808907f227d5996ca70a67e21c6 (patch)
tree356c65f2a50a335d149bc533c295784f2b361e65 /Doc/c-api/long.rst
parent59de0ee9e087a819a0a63b31c1391c6eee55b8ef (diff)
downloadcpython-db6c7f5c33ba4808907f227d5996ca70a67e21c6.zip
cpython-db6c7f5c33ba4808907f227d5996ca70a67e21c6.tar.gz
cpython-db6c7f5c33ba4808907f227d5996ca70a67e21c6.tar.bz2
Update C API docs for PEP 393.
Diffstat (limited to 'Doc/c-api/long.rst')
-rw-r--r--Doc/c-api/long.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index b2295e0..4c295fa 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -100,6 +100,20 @@ All integers are implemented as "long" integer objects of arbitrary size.
string is first encoded to a byte string using :c:func:`PyUnicode_EncodeDecimal`
and then converted using :c:func:`PyLong_FromString`.
+ .. deprecated-removed:: 3.3 4.0
+ Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
+ :c:func:`PyLong_FromUnicodeObject`.
+
+
+.. 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`.
+
+ .. versionadded:: 3.3
+
.. c:function:: PyObject* PyLong_FromVoidPtr(void *p)