From: Benjamin Peterson Date: Sun, 30 Mar 2014 19:07:09 +0000 (-0400) Subject: make partialmethod example work (closes #21105) X-Git-Tag: v3.4.1rc1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a4340325b153eab1f1bb1b91882d777fe6bcb21;p=python make partialmethod example work (closes #21105) --- diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 77cd8384b1..c46b7997c1 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