summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-30 13:00:34 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-30 13:00:34 (GMT)
commit17ff29d061d79a6c4f78a679dac6f9461f496f4a (patch)
treee9c82ef80481f1d91915ddef46ec8489b2da625f
parent83b3910e61f07736f9147e0d87e011e0d34ed328 (diff)
downloadcpython-17ff29d061d79a6c4f78a679dac6f9461f496f4a.zip
cpython-17ff29d061d79a6c4f78a679dac6f9461f496f4a.tar.gz
cpython-17ff29d061d79a6c4f78a679dac6f9461f496f4a.tar.bz2
Markup fix
-rw-r--r--Doc/c-api/number.rst2
-rw-r--r--Doc/c-api/object.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst
index 3602287..b1458b3 100644
--- a/Doc/c-api/number.rst
+++ b/Doc/c-api/number.rst
@@ -285,7 +285,7 @@ Number Protocol
.. cfunction:: PyObject* PyNumber_Index(PyObject *o)
Returns the *o* converted to a Python int or long on success or *NULL* with a
- TypeError exception raised on failure.
+ :exc:`TypeError` exception raised on failure.
.. versionadded:: 2.5
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 76e8beb..c5dccf9 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -279,7 +279,7 @@ is considered sufficient for this determination.
.. cfunction:: long PyObject_HashNotImplemented(PyObject *o)
- Set a TypeError indicating that ``type(o)`` is not hashable and return ``-1``.
+ Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and return ``-1``.
This function receives special treatment when stored in a ``tp_hash`` slot,
allowing a type to explicitly indicate to the interpreter that it is not
hashable.