def noLongerProvides(object, interface):
 directlyProvides(object, (directlyProvidedBy(object) - interface))
 if interface.providedBy(object):
  raise ValueError('Can only remove directly provided interfaces.')

def noLongerProvides ( object , interface ) : directlyProvides ( object , ( directlyProvidedBy ( object ) - interface ) ) if interface . providedBy ( object ) : raise ValueError ( 'Can only remove directly provided interfaces.' )
this removes a directly provided interface from an object .