A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/pythonmac-sig/2003-October/009026.html below:

[Pythonmac-SIG] Stopping execution of a Python script

[Pythonmac-SIG] Stopping execution of a Python script [Pythonmac-SIG] Stopping execution of a Python scriptLaurent Pierron 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 :

sleep(secs)
     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.

-- 
Laurent PIERRON


More information about the Pythonmac-SIG mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4