(self, alt_setting)
return USBInterfaceSetting(self.__interface.altsetting[alt_setting])
Returns an USBInterfaceSetting instance.
Returns an USBInterfaceSetting instance.
Returns an USBInterfaceSetting instance .
def __getitem__(self, alt_setting):
        """
        Returns an USBInterfaceSetting instance.
        """
        if not isinstance(alt_setting, int):
            raise TypeError('alt_setting parameter must be an integer')
        if not (0 <= alt_setting < self.getNumSettings()):
            raise IndexError('No such setting: %r' % (alt_setting, ))
        return USBInterfaceSetting(self.__interface.altsetting[alt_setting])
def __getitem__ ( self , alt_setting ) : if not isinstance ( alt_setting , int ) : raise TypeError ( 'alt_setting parameter must be an integer' ) if not ( 0 <= alt_setting < self . getNumSettings ( ) ) : raise IndexError ( 'No such setting: %r' % ( alt_setting , ) ) return USBInterfaceSetting ( self . __interface . altsetting [ alt_setting ] )