python/dist/src/Doc/lib libcmd.tex,1.15,1.16

Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4537/lib Modified Files: libcmd.tex Log Message: - document the termination condition for cmd.Cmd.cmdloop() - document the use of the return value for cmd.Cmd.do_*() methods Index: libcmd.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcmd.tex,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** libcmd.tex 31 Dec 2003 05:01:23 -0000 1.15 --- libcmd.tex 30 Jul 2004 18:58:54 -0000 1.16 *************** *** 61,64 **** --- 61,68 ---- method \method{do_shell()} (if such a method is defined). + This method will return when the \method{postcmd()} method returns a + true value. The \var{stop} argument to \method{postcmd()} is the + return value from the command's corresponding \method{do_*()} method. + If completion is enabled, completing commands will be done automatically, and completing of commands args is done by calling *************** *** 84,88 **** see the \method{precmd()} and \method{postcmd()} methods for useful execution hooks. The return value is a flag indicating whether ! interpretation of commands by the interpreter should stop. \end{methoddesc} --- 88,95 ---- see the \method{precmd()} and \method{postcmd()} methods for useful execution hooks. The return value is a flag indicating whether ! interpretation of commands by the interpreter should stop. If there ! is a \method{do_*()} method for the command \var{str}, the return ! value of that method is returned, otherwise the return value from the ! \method{default()} method is returned. \end{methoddesc}
participants (1)
-
fdrake@users.sourceforge.net