code: def print_info(self, buf=None):
          
          buf = buf or sys.stdout
          print >> buf, "Sections:"
          for i, section in enumerate(self._sections):
              print >> buf, "  %s:\t%s (%s)" % (i + 1, section[0], section[1])
docs: Print help sections.