(self, group_pattern=None, *, file=None)
return resp, self._grouplist(lines)
Process a LIST or LIST ACTIVE command. Arguments:
        - group_pattern: a pattern indicating which groups to query
        - file: Filename string or file object to store the result in
        Returns:
        - resp: server response if successful
        - list: list of (group, last, first, flag) (strings)
Process a LIST or LIST ACTIVE command. Arguments:
        - group_pattern: a pattern indicating which groups to query
        - file: Filename string or file object to store the result in
        Returns:
        - resp: server response if successful
        - list: list of (group, last, first, flag) (strings)
Process a LIST or LIST ACTIVE command . Arguments : - group_pattern : a pattern indicating which groups to query - file : Filename string or file object to store the result in Returns : - resp : server response if successful - list : list of ( group last first flag ) ( strings )
def list(self, group_pattern=None, *, file=None):
        """Process a LIST or LIST ACTIVE command. Arguments:
        - group_pattern: a pattern indicating which groups to query
        - file: Filename string or file object to store the result in
        Returns:
        - resp: server response if successful
        - list: list of (group, last, first, flag) (strings)
        """
        if group_pattern is not None:
            command = 'LIST ACTIVE ' + group_pattern
        else:
            command = 'LIST'
        resp, lines = self._longcmdstring(command, file)
        return resp, self._grouplist(lines)
def list ( self , group_pattern = None , * , file = None ) : if group_pattern is not None : command = 'LIST ACTIVE ' + group_pattern else : command = 'LIST' resp , lines = self . _longcmdstring ( command , file ) return resp , self . _grouplist ( lines )