We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6ecf11 + 9fc2f3d commit 8a0f5f2Copy full SHA for 8a0f5f2
Doc/c-api/sys.rst
@@ -224,8 +224,8 @@ accessible to C code. They all work with the current interpreter thread's
224
225
.. c:function:: PyObject *PySys_GetAttr(PyObject *name)
226
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.
+ Get the attribute *name* of the :mod:`sys` module. Return a :term:`strong reference`.
+ Raise :exc:`RuntimeError` and return ``NULL`` if it does not exist.
229
230
If the non-existing object should not be treated as a failure, you can use
231
:c:func:`PySys_GetOptionalAttr` instead.
0 commit comments