diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-30 19:36:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 19:36:33 (GMT) |
commit | f2ba17be2aec873741c2d8a55b1342afa360aec2 (patch) | |
tree | 869bdb889cc7e01c2a384a211f1cc9fb96b67e0a /Doc/c-api/gen.rst | |
parent | dcb338ea1b8f14e21dde3564658b9040df996349 (diff) | |
download | cpython-f2ba17be2aec873741c2d8a55b1342afa360aec2.zip cpython-f2ba17be2aec873741c2d8a55b1342afa360aec2.tar.gz cpython-f2ba17be2aec873741c2d8a55b1342afa360aec2.tar.bz2 |
[3.8] bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950) (GH-16999)
Replace all *NULL* with ``NULL``.
(cherry picked from commit 25fc088607c855060ed142296dc1bd0125fad1af)
Diffstat (limited to 'Doc/c-api/gen.rst')
-rw-r--r-- | Doc/c-api/gen.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/gen.rst b/Doc/c-api/gen.rst index 8d54021..e4b8d25 100644 --- a/Doc/c-api/gen.rst +++ b/Doc/c-api/gen.rst @@ -22,23 +22,23 @@ than explicitly calling :c:func:`PyGen_New` or :c:func:`PyGen_NewWithQualName`. .. c:function:: int PyGen_Check(PyObject *ob) - Return true if *ob* is a generator object; *ob* must not be *NULL*. + Return true if *ob* is a generator object; *ob* must not be ``NULL``. .. c:function:: int PyGen_CheckExact(PyObject *ob) - Return true if *ob*'s type is *PyGen_Type*; *ob* must not be *NULL*. + Return true if *ob*'s type is *PyGen_Type*; *ob* must not be ``NULL``. .. c:function:: PyObject* PyGen_New(PyFrameObject *frame) Create and return a new generator object based on the *frame* object. A reference to *frame* is stolen by this function. The argument must not be - *NULL*. + ``NULL``. .. c:function:: PyObject* PyGen_NewWithQualName(PyFrameObject *frame, PyObject *name, PyObject *qualname) Create and return a new generator object based on the *frame* object, with ``__name__`` and ``__qualname__`` set to *name* and *qualname*. A reference to *frame* is stolen by this function. The *frame* argument - must not be *NULL*. + must not be ``NULL``. |