summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/exceptions.rst
diff options
context:
space:
mode:
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-12-17 22:28:07 (GMT)
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-12-17 22:28:07 (GMT)
commitc5895dcc15d442ac45567b67a68ef76db8c20cd9 (patch)
treecffa4f6c8382e531db79855787367e7ced2d66a5 /Doc/c-api/exceptions.rst
parent7bbc855edbc76cde273539dc4d042d413c2352db (diff)
downloadcpython-c5895dcc15d442ac45567b67a68ef76db8c20cd9.zip
cpython-c5895dcc15d442ac45567b67a68ef76db8c20cd9.tar.gz
cpython-c5895dcc15d442ac45567b67a68ef76db8c20cd9.tar.bz2
Fix typo
Diffstat (limited to 'Doc/c-api/exceptions.rst')
-rw-r--r--Doc/c-api/exceptions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index db46902..c09b4cf 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -539,7 +539,7 @@ special recursion handling. In addition to protecting the stack,
following two functions facilitate this functionality. Effectively,
these are the C equivalent to :func:`reprlib.recursive_repr`.
-.. c:function:: int Py_ReprEntr(PyObject *object)
+.. c:function:: int Py_ReprEnter(PyObject *object)
Called at the beginning of the :attr:`tp_repr` implementation to
detect cycles.
@@ -559,8 +559,8 @@ these are the C equivalent to :func:`reprlib.recursive_repr`.
.. c:function:: void Py_ReprLeave(PyObject *object)
- Ends a :c:func:`Py_ReprEntr`. Must be called once for each
- invocation of :c:func:`Py_ReprEntr` that returns zero.
+ Ends a :c:func:`Py_ReprEnter`. Must be called once for each
+ invocation of :c:func:`Py_ReprEnter` that returns zero.
.. _standardexceptions: