diff options
Diffstat (limited to 'src/zope/interface/interfaces.py')
| -rw-r--r-- | src/zope/interface/interfaces.py | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/zope/interface/interfaces.py b/src/zope/interface/interfaces.py index 2a7e4e1..b5551be 100644 --- a/src/zope/interface/interfaces.py +++ b/src/zope/interface/interfaces.py @@ -86,6 +86,26 @@ class IMethod(IAttribute): class ISpecification(Interface): """Object Behavioral specifications""" + def providedBy(object): + """Test whether the interface is implemented by the object + + Return true of the object asserts that it implements the + interface, including asserting that it implements an extended + interface. + """ + + def implementedBy(class_): + """Test whether the interface is implemented by instances of the class + + Return true of the class asserts that its instances implement the + interface, including asserting that they implement an extended + interface. + """ + + def isOrExtends(other): + """Test whether the specification is or extends another + """ + def extends(other, strict=True): """Test whether a specification extends another @@ -95,10 +115,6 @@ class ISpecification(Interface): If strict is false, then the specification extends itself. """ - def isOrExtends(other): - """Test whether the specification is or extends another - """ - def weakref(callback=None): """Return a weakref to the specification @@ -229,22 +245,6 @@ class IInterface(ISpecification, IElement): """ - def providedBy(object): - """Test whether the interface is implemented by the object - - Return true of the object asserts that it implements the - interface, including asserting that it implements an extended - interface. - """ - - def implementedBy(class_): - """Test whether the interface is implemented by instances of the class - - Return true of the class asserts that its instances implement the - interface, including asserting that they implement an extended - interface. - """ - def names(all=False): """Get the interface attribute names |
