]> granicus.if.org Git - python/commitdiff
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 27 Oct 2016 18:42:15 +0000 (21:42 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 27 Oct 2016 18:42:15 +0000 (21:42 +0300)
special input values as literal text.

1  2 
Doc/c-api/arg.rst
Doc/c-api/init.rst
Doc/c-api/long.rst
Doc/c-api/structures.rst
Doc/c-api/unicode.rst

Simple merge
index c272a1cdaf30c27cd8ebe5d62e3364e46f1d00d4,70b98aeafa950de232d70451078ebe518ab24323..2965bc931a62535932e4f90d5490f8854c2f3ff5
@@@ -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
index bae9703590bcad189632a43b40e29edcc3d7fafd,68f6a8ec49ee7b4fafc2f247bd5909af4d5b7a4f..f592cb65c3e3a9184ff1849b98588c95bc658130
@@@ -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__`
Simple merge
Simple merge