(self, interface)
return USBInterface(self.__config.interface[interface])
Returns an USBInterface instance.
Returns an USBInterface instance.
Returns an USBInterface instance .
def __getitem__(self, interface):
        """
        Returns an USBInterface instance.
        """
        if not isinstance(interface, int):
            raise TypeError('interface parameter must be an integer')
        if not (0 <= interface < self.getNumInterfaces()):
            raise IndexError('No such interface: %r' % (interface, ))
        return USBInterface(self.__config.interface[interface])
def __getitem__ ( self , interface ) : if not isinstance ( interface , int ) : raise TypeError ( 'interface parameter must be an integer' ) if not ( 0 <= interface < self . getNumInterfaces ( ) ) : raise IndexError ( 'No such interface: %r' % ( interface , ) ) return USBInterface ( self . __config . interface [ interface ] )