summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/init.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-09 11:31:19 (GMT)
committerGitHub <noreply@github.com>2018-02-09 11:31:19 (GMT)
commit5bb0005f9ff768ac443924b4bb26c3818ce8dc5a (patch)
treef9a5f2ba1d855d62955e649e6054fc515f47ed70 /Doc/c-api/init.rst
parent23cdbfa744f0ec0e9e7575d378df4cb758691cd3 (diff)
downloadcpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.zip
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.gz
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.bz2
Make formatting of some return codes conforming to the general style. (#5587)
Diffstat (limited to 'Doc/c-api/init.rst')
-rw-r--r--Doc/c-api/init.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index bae49d5..f2564c4 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -273,8 +273,8 @@ Initializing and finalizing the interpreter
the last call to :c:func:`Py_Initialize`. Ideally, this frees all memory
allocated by the Python interpreter. This is a no-op when called for a second
time (without calling :c:func:`Py_Initialize` again first). Normally the
- return value is 0. If there were errors during finalization
- (flushing buffered data), -1 is returned.
+ return value is ``0``. If there were errors during finalization
+ (flushing buffered data), ``-1`` is returned.
This function is provided for a number of reasons. An embedding application
might want to restart Python without having to restart the application itself.
@@ -1018,7 +1018,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. c:function:: PY_INT64_T PyInterpreterState_GetID(PyInterpreterState *interp)
Return the interpreter's unique ID. If there was any error in doing
- so then -1 is returned and an error is set.
+ so then ``-1`` is returned and an error is set.
.. versionadded:: 3.7