[Pythonmac-SIG] Stopping execution of a Python script
Laurent.Pierron at loria.fr
Mon Oct 13 12:49:23 EDT 2003
Robb Brown wrote:
> Is there a way to create a simple breakpoint in a Python script? Like a
> stop command that stops the interpreter but doesn't kick you back to the
> command line like sys.exit()?
In module time :
Suspend execution for the given number of seconds.
The argument may be a floating point number to indicate a more
precise sleep time. The actual suspension time may be less than that
requested because any caught signal will terminate the sleep() following
execution of that signal's catching routine. Also, the suspension time
may be longer than requested by an arbitrary amount because of the
scheduling of other activity in the system.
More information about the Pythonmac-SIG