Commit 17ff29d0 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Markup fix

parent 83b3910e
...@@ -285,7 +285,7 @@ Number Protocol ...@@ -285,7 +285,7 @@ Number Protocol
.. cfunction:: PyObject* PyNumber_Index(PyObject *o) .. cfunction:: PyObject* PyNumber_Index(PyObject *o)
Returns the *o* converted to a Python int or long on success or *NULL* with a 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 .. versionadded:: 2.5
......
...@@ -279,7 +279,7 @@ is considered sufficient for this determination. ...@@ -279,7 +279,7 @@ is considered sufficient for this determination.
.. cfunction:: long PyObject_HashNotImplemented(PyObject *o) .. 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, 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 allowing a type to explicitly indicate to the interpreter that it is not
hashable. hashable.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment