Class
zope.interface.interface.Specification

Specifications

An interface specification is used to track interface declarations and component registrations.

This class is a base class for both interfaces themselves and for interface specifications (declarations).

Specifications are mutable. If you reassign their cases, their relations with other specifications are adjusted accordingly.

For example:

>>> from zope.interface import Interface >>> class I1(Interface): ... pass >>> class I2(I1): ... pass >>> class I3(I2): ... pass

>>> [i.__name__ for i in I1.__bases__] ['Interface']

>>> [i.__name__ for i in I2.__bases__] ['I1']

>>> I3.extends(I1) 1

>>> I2.__bases__ = (Interface, )

>>> [i.__name__ for i in I2.__bases__] ['Interface']

>>> I3.extends(I1) 0

Base classes

Implemented Interfaces

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses