Skip to content

Commit

Permalink
pythongh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev authored Aug 3, 2024
1 parent 7a5c410 commit d91ac52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Doc/c-api/long.rst
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
.. versionadded:: 3.14
.. c:function:: PyObject* PyLong_GetInfo(void)
On success, return a read only :term:`named tuple`, that holds
information about Python's internal representation of integers.
See :data:`sys.int_info` for description of individual fields.
On failure, return ``NULL`` with an exception set.
.. versionadded:: 3.1
.. c:function:: int PyUnstable_Long_IsCompact(const PyLongObject* op)
Return 1 if *op* is compact, 0 otherwise.
Expand Down

0 comments on commit d91ac52

Please sign in to comment.