Blocking the execution of a script

Peter van Kampen news at
Fri Aug 13 13:49:45 CEST 2004

In article <mailman.1606.1092393719.5135.python-list at>, Angelo Secchi wrote:
> Hi,
> I would like Python to interrupt the execution of a script in case an if
> condition turns out to be TRUE. What is the proper way to do that?
> Thanks,
> a. 

import sys

if cond:



Peter van Kampen
pterk -- at --

More information about the Python-list mailing list