mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Add tracker references.
This commit is contained in:
parent
98b140c196
commit
cbc903bc7e
1 changed files with 2 additions and 2 deletions
|
@ -997,7 +997,7 @@ self-reference by displaying "..." in the recursive part of the representation
|
|||
string.
|
||||
|
||||
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:
|
||||
|
||||
>>> class MyList(list):
|
||||
|
@ -1011,7 +1011,7 @@ decorator, :func:`reprlib.recursive_repr`, for detecting recursive calls to
|
|||
>>> print(m)
|
||||
<'a'|'b'|'c'|...|'x'>
|
||||
|
||||
(Contributed by Raymond Hettinger.)
|
||||
(Contributed by Raymond Hettinger in :issue:`9826` and :issue:`9840`.)
|
||||
|
||||
contextlib
|
||||
----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue