From 3a4340325b153eab1f1bb1b91882d777fe6bcb21 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 30 Mar 2014 15:07:09 -0400 Subject: [PATCH] make partialmethod example work (closes #21105) --- Doc/library/functools.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 77cd8384b1f..c46b7997c1b 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