Skip to content

Commit ce4d25f

Browse files
authored
bpo-46196: document method cmd.Cmd.columnize (#30303)
The method is already written and tested, now it's officially public.
1 parent 7a8796d commit ce4d25f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/library/cmd.rst

+7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ A :class:`Cmd` instance has the following methods:
121121
:meth:`complete_\*` method is available. By default, it returns an empty list.
122122

123123

124+
.. method:: Cmd.columnize(list, displaywidth=80)
125+
126+
Method called to display a list of strings as a compact set of columns.
127+
Each column is only as wide as necessary.
128+
Columns are separated by two spaces for readability.
129+
130+
124131
.. method:: Cmd.precmd(line)
125132

126133
Hook method executed just before the command line *line* is interpreted, but
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document method :meth:`cmd.Cmd.columnize`.

0 commit comments

Comments
 (0)