MCPcopy Index your code
hub / github.com/python/cpython / print_topics

Method print_topics

Lib/cmd.py:351–357  ·  view source on GitHub ↗
(self, header, cmds, cmdlen, maxcol)

Source from the content-addressed store, hash-verified

349 self.print_topics(self.undoc_header, cmds_undoc, 15,80)
350
351 def print_topics(self, header, cmds, cmdlen, maxcol):
352 if cmds:
353 self.stdout.write("%s\n"%str(header))
354 if self.ruler:
355 self.stdout.write("%s\n"%str(self.ruler * len(header)))
356 self.columnize(cmds, maxcol-1)
357 self.stdout.write("\n")
358
359 def columnize(self, list, displaywidth=80):
360 """Display a list of strings as a compact set of columns.

Callers 1

do_helpMethod · 0.95

Calls 3

columnizeMethod · 0.95
strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected