Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Doc/c-api/long.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
.. versionadded:: 3.13


.. c:macro:: PyLong_FromPid(pid)

Macro for creating a Python integer from a process identifier.

This can be defined as an alias to :c:func:`PyLong_FromLong` or
:c:func:`PyLong_FromLongLong`, depending on the size of the system's
PID type.

.. versionadded:: 3.2


.. c:function:: long PyLong_AsLong(PyObject *obj)

.. index::
Expand Down Expand Up @@ -575,6 +586,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
.. versionadded:: 3.13


.. c:macro:: PyLong_AsPid(pid)

Macro for converting a Python integer into a process identifier.

This can be defined as an alias to :c:func:`PyLong_AsLong`,
:c:func:`PyLong_FromLongLong`, or :c:func:`PyLong_AsInt`, depending on the
size of the system's PID type.

.. versionadded:: 3.2


.. c:function:: int PyLong_GetSign(PyObject *obj, int *sign)

Get the sign of the integer object *obj*.
Expand Down
Loading