Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Update Doc/c-api/sys.rst
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
vstinner and erlend-aasland authored Jan 28, 2025
commit 6c8c9a1a6ea40ab50a911f1003ee9812eaac1ce1
5 changes: 2 additions & 3 deletions Doc/c-api/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,8 @@ accessible to C code. They all work with the current interpreter thread's

.. c:function:: PyObject *PySys_GetAttr(PyObject *name)

Return the object *name* from the :mod:`sys` module.

Return a new object on success. Set an exception and return ``NULL`` on
Return the object *name* from the :mod:`sys` module on success.
Set an exception and return ``NULL`` on
error.

.. versionadded:: next
Expand Down