Commit cbc903bc authored by Raymond Hettinger's avatar Raymond Hettinger

Add tracker references.

parent 98b140c1
...@@ -997,7 +997,7 @@ self-reference by displaying "..." in the recursive part of the representation ...@@ -997,7 +997,7 @@ self-reference by displaying "..." in the recursive part of the representation
string. string.
To help write such :meth:`__repr__` methods, the :mod:`reprlib` module has a new To help write such :meth:`__repr__` methods, the :mod:`reprlib` module has a new
decorator, :func:`reprlib.recursive_repr`, for detecting recursive calls to decorator, :func:`~reprlib.recursive_repr`, for detecting recursive calls to
:meth:`__repr__` and substituting a placeholder string instead: :meth:`__repr__` and substituting a placeholder string instead:
>>> class MyList(list): >>> class MyList(list):
...@@ -1011,7 +1011,7 @@ decorator, :func:`reprlib.recursive_repr`, for detecting recursive calls to ...@@ -1011,7 +1011,7 @@ decorator, :func:`reprlib.recursive_repr`, for detecting recursive calls to
>>> print(m) >>> print(m)
<'a'|'b'|'c'|...|'x'> <'a'|'b'|'c'|...|'x'>
(Contributed by Raymond Hettinger.) (Contributed by Raymond Hettinger in :issue:`9826` and :issue:`9840`.)
contextlib contextlib
---------- ----------
......
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