summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-03-30 19:07:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-03-30 19:07:09 (GMT)
commit3a4340325b153eab1f1bb1b91882d777fe6bcb21 (patch)
tree1e66441ad47c1381337556fa1f088e0c01010451
parenta7fcd926e890f64ee427cf8890a6507c6b1342ef (diff)
downloadcpython-3a4340325b153eab1f1bb1b91882d777fe6bcb21.zip
cpython-3a4340325b153eab1f1bb1b91882d777fe6bcb21.tar.gz
cpython-3a4340325b153eab1f1bb1b91882d777fe6bcb21.tar.bz2
make partialmethod example work (closes #21105)
-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