From: Serhiy Storchaka Date: Thu, 27 Oct 2016 18:42:15 +0000 (+0300) Subject: Issue #28496: Mark up constants 0, 1 and -1 that denote return values or X-Git-Tag: v3.6.0b3~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=159f97b2d7aba6f2d5cdc7f6155298ca33626762;p=python Issue #28496: Mark up constants 0, 1 and -1 that denote return values or special input values as literal text. --- 159f97b2d7aba6f2d5cdc7f6155298ca33626762 diff --cc Doc/c-api/init.rst index c272a1cdaf,70b98aeafa..2965bc931a --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@@ -120,10 -111,10 +120,10 @@@ Process-wide parameter Note that :data:`sys.stderr` always uses the "backslashreplace" error handler, regardless of this (or any other) setting. - If :c:func:`Py_Finalize` is called, this function will need to be called + If :c:func:`Py_FinalizeEx` is called, this function will need to be called again in order to affect subsequent calls to :c:func:`Py_Initialize`. - Returns 0 if successful, a nonzero value on error (e.g. calling after the + Returns ``0`` if successful, a nonzero value on error (e.g. calling after the interpreter has already been initialized). .. versionadded:: 3.4 diff --cc Doc/c-api/long.rst index bae9703590,68f6a8ec49..f592cb65c3 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@@ -232,10 -232,10 +232,10 @@@ All integers are implemented as "long" method (if present) to convert it to a :c:type:`PyLongObject`. If the value of *obj* is out of range for an :c:type:`unsigned long`, - return the reduction of that value modulo :const:`ULONG_MAX + 1`. + return the reduction of that value modulo ``ULONG_MAX + 1``. -.. c:function:: unsigned PY_LONG_LONG PyLong_AsUnsignedLongLongMask(PyObject *obj) +.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj) Return a C :c:type:`unsigned long long` representation of *obj*. If *obj* is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__`