mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Closes #16294: 8 space indent in tutorial
This commit is contained in:
parent
c4c4842d86
commit
af38774b5f
1 changed files with 2 additions and 2 deletions
|
@ -257,9 +257,9 @@ applications include caching objects that are expensive to create::
|
|||
>>> import weakref, gc
|
||||
>>> class A:
|
||||
... def __init__(self, value):
|
||||
... self.value = value
|
||||
... self.value = value
|
||||
... def __repr__(self):
|
||||
... return str(self.value)
|
||||
... return str(self.value)
|
||||
...
|
||||
>>> a = A(10) # create a reference
|
||||
>>> d = weakref.WeakValueDictionary()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue