summaryrefslogtreecommitdiffstats
path: root/Doc/library/functools.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-04 13:32:16 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-11-04 13:32:16 (GMT)
commit3daaf5f89d7aab420146f74d26ada63afcabd992 (patch)
tree7dfc03983cbc66a0021b699bfec33304fbee027d /Doc/library/functools.rst
parent21ea21ef6db731a8cac14fcd0c1a12c5c44496f4 (diff)
downloadcpython-3daaf5f89d7aab420146f74d26ada63afcabd992.zip
cpython-3daaf5f89d7aab420146f74d26ada63afcabd992.tar.gz
cpython-3daaf5f89d7aab420146f74d26ada63afcabd992.tar.bz2
Fix functools.partialmethod docs and __all__
Diffstat (limited to 'Doc/library/functools.rst')
-rw-r--r--Doc/library/functools.rst4
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