Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aee3c76 + af38774 commit 80c2f4fCopy full SHA for 80c2f4f
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