Package mrv :: Module interface :: Class Interface
[hide private]
[frames] | no frames]

Class Interface

source code

object --+
         |
        Interface
Known Subclasses:

Base for all interfaces. All interfaces should derive from here.
Instance Methods [hide private]
 
supports(self, interface_type)
Returns: True if this instance supports the interface of the given type
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

supports(self, interface_type)

source code 
Parameters:
  • interface_type - Type of the interface you require this instance to support
Returns:
True if this instance supports the interface of the given type

Note: Must be used in case you only have a weak reference of your interface instance or proxy which is a case where the ordinary isinstance( obj, iInterface ) will not work