diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-30 19:37:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 19:37:16 (GMT) |
commit | e835b31d2b212c3c7820364398979cae2a9740b2 (patch) | |
tree | b4480396678dc575c8f183f0e5add28ee7f36604 /Doc/c-api/exceptions.rst | |
parent | 1d8da61f5ad26274556e0bbce260ce292d0402a1 (diff) | |
download | cpython-e835b31d2b212c3c7820364398979cae2a9740b2.zip cpython-e835b31d2b212c3c7820364398979cae2a9740b2.tar.gz cpython-e835b31d2b212c3c7820364398979cae2a9740b2.tar.bz2 |
bpo-38600: NULL -> ``NULL``. (GH-17001)
Also fix some other formatting.
Diffstat (limited to 'Doc/c-api/exceptions.rst')
-rw-r--r-- | Doc/c-api/exceptions.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 4cb3095..c7ba74c 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -19,9 +19,9 @@ return ``1`` for success and ``0`` for failure). Concretely, the error indicator consists of three object pointers: the exception's type, the exception's value, and the traceback object. Any -of those pointers can be NULL if non-set (although some combinations are -forbidden, for example you can't have a non-NULL traceback if the exception -type is NULL). +of those pointers can be ``NULL`` if non-set (although some combinations are +forbidden, for example you can't have a non-``NULL`` traceback if the exception +type is ``NULL``). When a function must fail because some function it called failed, it generally doesn't set the error indicator; the function it called already set it. It is @@ -92,7 +92,7 @@ Raising exceptions These functions help you set the current thread's error indicator. For convenience, some of these functions will always return a -NULL pointer for use in a ``return`` statement. +``NULL`` pointer for use in a ``return`` statement. .. c:function:: void PyErr_SetString(PyObject *type, const char *message) |