diff options
author | Guido van Rossum <guido@python.org> | 2007-08-01 17:52:23 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-01 17:52:23 +0000 |
commit | 96a6db603430a8a8b0c997426afbdb8c4334e86f (patch) | |
tree | 48b820e6d2d980a192f09daaee253e000c117f0f /Lib/abc.py | |
parent | 8914904f7e7a02598326ceaf2d9201c9d825b657 (diff) | |
download | cpython-96a6db603430a8a8b0c997426afbdb8c4334e86f.tar.gz |
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
diff --git a/Lib/abc.py b/Lib/abc.py index ab6325e713..07836e631b 100644 --- a/Lib/abc.py +++ b/Lib/abc.py @@ -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: |