Commit 3dd8cbea authored by Jesus Cea's avatar Jesus Cea

Closes #16294: 8 space indent in tutorial

parent 45dba1da
...@@ -257,9 +257,9 @@ applications include caching objects that are expensive to create:: ...@@ -257,9 +257,9 @@ applications include caching objects that are expensive to create::
>>> import weakref, gc >>> import weakref, gc
>>> class A: >>> class A:
... def __init__(self, value): ... def __init__(self, value):
... self.value = value ... self.value = value
... def __repr__(self): ... def __repr__(self):
... return str(self.value) ... return str(self.value)
... ...
>>> a = A(10) # create a reference >>> a = A(10) # create a reference
>>> d = weakref.WeakValueDictionary() >>> d = weakref.WeakValueDictionary()
......
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