We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ebef36 + 80c2f4f commit 145ce8eCopy full SHA for 145ce8e
1 file changed
Doc/tutorial/stdlib2.rst
@@ -259,9 +259,9 @@ applications include caching objects that are expensive to create::
259
>>> import weakref, gc
260
>>> class A:
261
... def __init__(self, value):
262
- ... self.value = value
+ ... self.value = value
263
... def __repr__(self):
264
- ... return str(self.value)
+ ... return str(self.value)
265
...
266
>>> a = A(10) # create a reference
267
>>> d = weakref.WeakValueDictionary()
0 commit comments