Skip to content

Commit 9fc2f3d

Browse files
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent 2eb9533 commit 9fc2f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/sys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ accessible to C code. They all work with the current interpreter thread's
224224
225225
.. c:function:: PyObject *PySys_GetAttr(PyObject *name)
226226
227-
Return the object *name* from the :mod:`sys` module or ``NULL`` on failure.
228-
Set :exc:`RuntimeError` and return ``NULL`` if it does not exist.
227+
Get the attribute *name* of the :mod:`sys` module. Return a :term:`strong reference`.
228+
Raise :exc:`RuntimeError` and return ``NULL`` if it does not exist.
229229
230230
If the non-existing object should not be treated as a failure, you can use
231231
:c:func:`PySys_GetOptionalAttr` instead.

0 commit comments

Comments
 (0)