Commit d40fd2f2 authored by Benjamin Peterson's avatar Benjamin Peterson

make partialmethod example work (closes #21105)

parent c739b6b8
...@@ -218,6 +218,8 @@ The :mod:`functools` module defines the following functions: ...@@ -218,6 +218,8 @@ The :mod:`functools` module defines the following functions:
Example:: Example::
>>> class Cell(object): >>> class Cell(object):
... def __init__(self):
... self._alive = False
... @property ... @property
... def alive(self): ... def alive(self):
... return self._alive ... return self._alive
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment