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).
This commit is contained in:
Guido van Rossum 2007-08-01 17:52:23 +00:00
parent 46334cdae8
commit 70d2b890de
2 changed files with 36 additions and 18 deletions

View file

@ -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: