summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/number.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:41:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 18:41:19 (GMT)
commit1ecf7d204dd3abb143f53851c31fefd4ef887314 (patch)
tree9cd727d732a82c41d4522b1fd405f408d4718f61 /Doc/c-api/number.rst
parentb29cee40ee948731f239cc3a200c62ea3dbabc9f (diff)
downloadcpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.zip
cpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.tar.gz
cpython-1ecf7d204dd3abb143f53851c31fefd4ef887314.tar.bz2
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
special input values as literal text.
Diffstat (limited to 'Doc/c-api/number.rst')
-rw-r--r--Doc/c-api/number.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst
index 4a2d931..3c7605a 100644
--- a/Doc/c-api/number.rst
+++ b/Doc/c-api/number.rst
@@ -266,7 +266,7 @@ Number Protocol
.. c:function:: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc)
Returns *o* converted to a Py_ssize_t value if *o* can be interpreted as an
- integer. If the call fails, an exception is raised and -1 is returned.
+ integer. If the call fails, an exception is raised and ``-1`` is returned.
If *o* can be converted to a Python int but the attempt to
convert to a Py_ssize_t value would raise an :exc:`OverflowError`, then the