mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix whitespace in example.
This commit is contained in:
parent
b4b3575e31
commit
400daedb13
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ string instead.
|
|||
|
||||
>>> class MyList(list):
|
||||
... @recursive_repr()
|
||||
... def __repr__(self):
|
||||
... return '<' + '|'.join(map(repr, self)) + '>'
|
||||
... def __repr__(self):
|
||||
... return '<' + '|'.join(map(repr, self)) + '>'
|
||||
...
|
||||
>>> m = MyList('abc')
|
||||
>>> m.append(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue