Name
preloop
Synopsis
c
.preloop( )
c
.cmdloop
calls
c
.preloop( )
before
cmdloop
’s loop begins. Unless
your subclass overrides this method, the base class
Cmd.preloop
method is called, and does nothing at
all.
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.