diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-04 13:32:16 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-04 13:32:16 (GMT) |
commit | 3daaf5f89d7aab420146f74d26ada63afcabd992 (patch) | |
tree | 7dfc03983cbc66a0021b699bfec33304fbee027d /Doc | |
parent | 21ea21ef6db731a8cac14fcd0c1a12c5c44496f4 (diff) | |
download | cpython-3daaf5f89d7aab420146f74d26ada63afcabd992.zip cpython-3daaf5f89d7aab420146f74d26ada63afcabd992.tar.gz cpython-3daaf5f89d7aab420146f74d26ada63afcabd992.tar.bz2 |
Fix functools.partialmethod docs and __all__
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functools.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 4eb263a..77cd838 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -223,8 +223,8 @@ The :mod:`functools` module defines the following functions: ... return self._alive ... def set_state(self, state): ... self._alive = bool(state) - ... set_alive = partialmethod(set_alive, True) - ... set_dead = partialmethod(set_alive, False) + ... set_alive = partialmethod(set_state, True) + ... set_dead = partialmethod(set_state, False) ... >>> c = Cell() >>> c.alive |