]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #16294: 8 space indent in tutorial
authorJesus Cea <jcea@jcea.es>
Mon, 22 Oct 2012 11:14:20 +0000 (13:14 +0200)
committerJesus Cea <jcea@jcea.es>
Mon, 22 Oct 2012 11:14:20 +0000 (13:14 +0200)
Doc/tutorial/stdlib2.rst

index a5ba47250202efd381cc9ab5027894a8a9e1a45b..1b0e856a67de570f06292e8d8a5d40c93f3df4bc 100644 (file)
@@ -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()