diff options
| author | Benjamin Peterson <benjamin@python.org> | 2014-03-30 15:07:09 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2014-03-30 15:07:09 -0400 |
| commit | 3a4340325b153eab1f1bb1b91882d777fe6bcb21 (patch) | |
| tree | 1e66441ad47c1381337556fa1f088e0c01010451 | |
| parent | a7fcd926e890f64ee427cf8890a6507c6b1342ef (diff) | |
| download | cpython-git-3a4340325b153eab1f1bb1b91882d777fe6bcb21.tar.gz | |
make partialmethod example work (closes #21105)
| -rw-r--r-- | Doc/library/functools.rst | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
