We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f19be4 commit 2ff4158Copy full SHA for 2ff4158
Doc/c-api/long.rst
@@ -324,6 +324,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
324
Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
325
326
327
+.. c:function:: PyObject* PyLong_GetInfo(void)
328
+
329
+ On success, return a read only :term:`named tuple`, that holds
330
+ information about Python's internal representation of integers.
331
+ See :data:`sys.int_info` for description of individual fields.
332
333
+ On failure, return ``NULL`` with an exception set.
334
335
+ .. versionadded:: 3.1
336
337
338
.. c:function:: int PyUnstable_Long_IsCompact(const PyLongObject* op)
339
340
Return 1 if *op* is compact, 0 otherwise.
0 commit comments