Skip to content

Commit 8a0f5f2

Browse files
Merge remote-tracking branch 'refs/remotes/origin/capi-PySys_GetAttr' into capi-PySys_GetAttr
2 parents e6ecf11 + 9fc2f3d commit 8a0f5f2

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)