summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/functools.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 77cd838..c46b799 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -218,6 +218,8 @@ The :mod:`functools` module defines the following functions:
Example::
>>> class Cell(object):
+ ... def __init__(self):
+ ... self._alive = False
... @property
... def alive(self):
... return self._alive