mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Fix whitespace in example.
This commit is contained in:
parent
045160bc39
commit
2389cd5f2b
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