bpo-46196: document method cmd.Cmd.columnize (#30303)
The method is already written and tested, now it's officially public.
This commit is contained in:
parent
7a8796dc67
commit
ce4d25f3cd
@ -121,6 +121,13 @@ A :class:`Cmd` instance has the following methods:
|
|||||||
:meth:`complete_\*` method is available. By default, it returns an empty list.
|
:meth:`complete_\*` method is available. By default, it returns an empty list.
|
||||||
|
|
||||||
|
|
||||||
|
.. method:: Cmd.columnize(list, displaywidth=80)
|
||||||
|
|
||||||
|
Method called to display a list of strings as a compact set of columns.
|
||||||
|
Each column is only as wide as necessary.
|
||||||
|
Columns are separated by two spaces for readability.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Cmd.precmd(line)
|
.. method:: Cmd.precmd(line)
|
||||||
|
|
||||||
Hook method executed just before the command line *line* is interpreted, but
|
Hook method executed just before the command line *line* is interpreted, but
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Document method :meth:`cmd.Cmd.columnize`.
|
Loading…
x
Reference in New Issue
Block a user