]> granicus.if.org Git - python/commitdiff
Markup fix
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 30 Sep 2008 13:00:34 +0000 (13:00 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 30 Sep 2008 13:00:34 +0000 (13:00 +0000)
Doc/c-api/number.rst
Doc/c-api/object.rst

index 3602287b7f666d157a6ddfdbf6640f383c749d2f..b1458b34cc2895e13af5c6b588381e1814271d8b 100644 (file)
@@ -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
 
index 76e8beb3e1148e001d1668229e4bdacb7d47c6f2..c5dccf925ab72137bc8d2303f64edf0de322c90c 100644 (file)
@@ -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.