[Python-checkins] r66697 - in python/trunk/Doc/c-api: number.rst object.rst

andrew.kuchling python-checkins at python.org
Tue Sep 30 15:00:34 CEST 2008


Author: andrew.kuchling
Date: Tue Sep 30 15:00:34 2008
New Revision: 66697

Log:
Markup fix

Modified:
   python/trunk/Doc/c-api/number.rst
   python/trunk/Doc/c-api/object.rst

Modified: python/trunk/Doc/c-api/number.rst
==============================================================================
--- python/trunk/Doc/c-api/number.rst	(original)
+++ python/trunk/Doc/c-api/number.rst	Tue Sep 30 15:00:34 2008
@@ -285,7 +285,7 @@
 .. 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
 

Modified: python/trunk/Doc/c-api/object.rst
==============================================================================
--- python/trunk/Doc/c-api/object.rst	(original)
+++ python/trunk/Doc/c-api/object.rst	Tue Sep 30 15:00:34 2008
@@ -279,7 +279,7 @@
 
 .. 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.


More information about the Python-checkins mailing list