diff options
| author | Tres Seaver <tseaver@palladion.com> | 2012-04-06 01:15:03 +0000 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2012-04-06 01:15:03 +0000 |
| commit | f49ecd4cae67ece47e9db4faacc8460afde32812 (patch) | |
| tree | 8493dcd1b6c1946f47000b9c2557dfa045c4fc50 /src/zope/interface/interfaces.py | |
| parent | 19fbad31cabc0a21b3fb7b0fa443d85a96edee50 (diff) | |
| download | zope-interface-f49ecd4cae67ece47e9db4faacc8460afde32812.tar.gz | |
Move commented-out doctest snippets into API docs as real snippets.
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 |
