def get_selected_values ( self , selection ) : return [ v for b , v in self . _choices if b & selection ]
python code for selection list s
Return a list of values for the given selection .
def get_selected_values(self, selection):
        """Return a list of values for the given selection."""
        return [v for b, v in self._choices if b & selection]