]> granicus.if.org Git - python/commitdiff
Fix typo
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>
Fri, 17 Dec 2010 22:28:07 +0000 (22:28 +0000)
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>
Fri, 17 Dec 2010 22:28:07 +0000 (22:28 +0000)
Doc/c-api/exceptions.rst

index db46902e9c3799a2110dc02a4f517fcc0f1e8ecb..c09b4cf5c017c50b3ac1aaf5f090f898a727c6a7 100644 (file)
@@ -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: