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:
Nikita Sobolev 2022-01-02 21:33:20 +03:00 committed by GitHub
parent 7a8796dc67
commit ce4d25f3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,13 @@ A :class:`Cmd` instance has the following methods:
: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)
Hook method executed just before the command line *line* is interpreted, but

View File

@ -0,0 +1 @@
Document method :meth:`cmd.Cmd.columnize`.