March 2003
Intermediate to advanced
656 pages
39h 30m
English
postcmd
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.
Read now
Unlock full access