mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-122280) (#122644)
[3.12] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-GH-122280)
(cherry picked from commit d91ac525ef
)
This commit is contained in:
parent
8f19be47b6
commit
2ff41583fd
1 changed files with 11 additions and 0 deletions
|
@ -324,6 +324,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
|
||||||
Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
|
Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
|
||||||
|
|
||||||
|
|
||||||
|
.. 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)
|
.. c:function:: int PyUnstable_Long_IsCompact(const PyLongObject* op)
|
||||||
|
|
||||||
Return 1 if *op* is compact, 0 otherwise.
|
Return 1 if *op* is compact, 0 otherwise.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue