diff options
author | Guido van Rossum <guido@python.org> | 2007-08-01 17:52:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-01 17:52:23 (GMT) |
commit | 70d2b890deb44c7132bcb9cfaa36a8313281fd2c (patch) | |
tree | 01a84e83fcab3b8b585cfbcce00801aaa76a369a /Lib/abc.py | |
parent | 46334cdae8a057c3f62a15e343ead7bb3d8ef33d (diff) | |
download | cpython-70d2b890deb44c7132bcb9cfaa36a8313281fd2c.zip cpython-70d2b890deb44c7132bcb9cfaa36a8313281fd2c.tar.gz cpython-70d2b890deb44c7132bcb9cfaa36a8313281fd2c.tar.bz2 |
Tests for @abstractproperty by Jeffrey Yasskin.
(The previous changes to abc.py were also by him).
Put back a comment about using super() for properties
(I didn't realize this worked).
Diffstat (limited to 'Lib/abc.py')
-rw-r--r-- | Lib/abc.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,8 @@ class abstractproperty(property): Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract properties are overridden. + The abstract properties can be called using any of the the normal + 'super' call mechanisms. Usage: |