Name

postcmd

Synopsis

                        c.postcmd(flag,s)

c .cmdloop calls c .postcmd( flag,s ) for each command line s, after c .onecmd( s ) has returned value flag. If flag is true, the command just executed is posing a conditional request to terminate the command loop. If postcmd returns a true value, cmdloop’s loop terminates. Unless your subclass overrides this method, the base-class method Cmd.postcmd is called, and returns flag 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.