Lines Matching defs:group
7 >>> resp, count, first, last, name = s.group('comp.lang.python')
8 >>> print 'Group', name, 'has', count, 'articles, range', first, 'to', last
9 Group comp.lang.python has 51 articles, range 5770 to 5821
106 reader-specific commands, such as `group'. If you get
276 def newnews(self, group, date, time, file=None):
278 - group: group name or '*'
285 cmd = 'NEWNEWS ' + group + ' ' + date + ' ' + time
291 - list: list of (group, last, first, flag) (strings)"""
295 # Parse lines into "group last first flag"
299 def description(self, group):
301 """Get a description for a single group. If more than one
302 group matches ('group' is a pattern), return the first. If no
303 group matches, return an empty string.
309 NOTE: This neither checks for a wildcard in 'group' nor does
310 it check whether the group actually exists."""
312 resp, lines = self.descriptions(group)
320 line_pat = re.compile("^(?P<group>[^ \t]+)[ \t]+(.*)$")
332 lines.append(match.group(1, 2))
335 def group(self, name):
336 """Process a GROUP command. Argument:
337 - group: the group name
343 - name: the group name"""
345 resp = self.shortcmd('GROUP ' + name)
466 lines[i] = m.group(1, 2)
495 def xgtitle(self, group, file=None):
497 - group: group name wildcard (i.e. news.*)
503 resp, raw_lines = self.longcmd('XGTITLE ' + group, file)
508 lines.append(match.group(1, 2))
619 resp, count, first, last, name = s.group('comp.lang.python')
621 print 'Group', name, 'has', count, 'articles, range', first, 'to', last