@@ -44,8 +44,8 @@ Initializing and finalizing the interpreter
4444
4545.. c :function :: void Py_InitializeEx (int initsigs)
4646
47- This function works like :c:func:`Py_Initialize` if *initsigs* is 1 . If
48- *initsigs* is 0 , it skips initialization registration of signal handlers, which
47+ This function works like :c:func:`Py_Initialize` if *initsigs* is ``1`` . If
48+ *initsigs* is ``0`` , it skips initialization registration of signal handlers, which
4949 might be useful when Python is embedded.
5050
5151
@@ -123,7 +123,7 @@ Process-wide parameters
123123 If :c:func:`Py_FinalizeEx` is called, this function will need to be called
124124 again in order to affect subsequent calls to :c:func:`Py_Initialize`.
125125
126- Returns 0 if successful, a nonzero value on error (e.g. calling after the
126+ Returns ``0`` if successful, a nonzero value on error (e.g. calling after the
127127 interpreter has already been initialized).
128128
129129 .. versionadded:: 3.4
@@ -358,7 +358,7 @@ Process-wide parameters
358358 - If the name of an existing script is passed in ``argv[0] ``, the absolute
359359 path of the directory where the script is located is prepended to
360360 :data: `sys.path `.
361- - Otherwise (that is, if *argc * is 0 or ``argv[0] `` doesn't point
361+ - Otherwise (that is, if *argc * is `` 0 `` or ``argv[0] `` doesn't point
362362 to an existing file name), an empty string is prepended to
363363 :data: `sys.path `, which is the same as prepending the current working
364364 directory (``"." ``).
@@ -368,7 +368,7 @@ Process-wide parameters
368368
369369 .. note ::
370370 It is recommended that applications embedding the Python interpreter
371- for purposes other than executing a single script pass 0 as *updatepath *,
371+ for purposes other than executing a single script pass `` 0 `` as *updatepath *,
372372 and update :data: `sys.path ` themselves if desired.
373373 See `CVE-2008-5983 <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983 >`_.
374374
@@ -380,14 +380,14 @@ Process-wide parameters
380380
381381 .. versionadded :: 3.1.3
382382
383- .. XXX impl. doesn't seem consistent in allowing 0/ NULL for the params;
383+ .. XXX impl. doesn't seem consistent in allowing ``0``/`` NULL`` for the params;
384384 check w/ Guido.
385385
386386
387387 .. c :function :: void PySys_SetArgv (int argc, wchar_t **argv)
388388
389389 This function works like :c:func: `PySys_SetArgvEx ` with *updatepath * set
390- to 1 unless the :program: `python ` interpreter was started with the
390+ to `` 1 `` unless the :program: `python ` interpreter was started with the
391391 :option: `-I `.
392392
393393 Use :c:func: `Py_DecodeLocale ` to decode a bytes string to get a
@@ -727,10 +727,10 @@ with sub-interpreters:
727727
728728.. c:function:: int PyGILState_Check()
729729
730- Return 1 if the current thread is holding the GIL and 0 otherwise.
730+ Return ``1`` if the current thread is holding the GIL and ``0`` otherwise.
731731 This function can be called from any thread at any time.
732732 Only if it has had its Python thread state initialized and currently is
733- holding the GIL will it return 1 .
733+ holding the GIL will it return ``1`` .
734734 This is mainly a helper/diagnostic function. It can be useful
735735 for example in callback contexts or memory allocation functions when
736736 knowing that the GIL is locked can allow the caller to perform sensitive
@@ -1000,8 +1000,8 @@ pointer and a void pointer argument.
10001000 .. index :: single: Py_AddPendingCall()
10011001
10021002 Schedule a function to be called from the main interpreter thread. On
1003- success, 0 is returned and *func * is queued for being called in the
1004- main thread. On failure, -1 is returned without setting any exception.
1003+ success, `` 0 `` is returned and *func * is queued for being called in the
1004+ main thread. On failure, `` -1 `` is returned without setting any exception.
10051005
10061006 When successfully queued, *func * will be *eventually * called from the
10071007 main interpreter thread with the argument *arg *. It will be called
@@ -1012,7 +1012,7 @@ pointer and a void pointer argument.
10121012 * with the main thread holding the :term: `global interpreter lock `
10131013 (*func * can therefore use the full C API).
10141014
1015- *func* must return 0 on success, or -1 on failure with an exception
1015+ *func* must return ``0`` on success, or ``-1`` on failure with an exception
10161016 set. *func* won't be interrupted to perform another asynchronous
10171017 notification recursively, but it can still be interrupted to switch
10181018 threads if the global interpreter lock is released.
0 commit comments