Name
precmd
Synopsis
c
.precmd(s
)
c
.cmdloop
calls
s
=
c
.precmd(
s
)
to preprocess each command line s
. The
current leg of the loop bases all further processing on the string
that precmd
returns. Unless your subclass
overrides this method, the base-class method
Cmd.precmd
is called, and returns
s
itself as the method’s
result.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.