terminate execfile

Paddy paddy3118 at netscape.net
Sat Oct 14 08:08:21 EDT 2006


Teja wrote:
> Teja wrote:
>
> > How to terminate execfile() in the middle of its execution. Any
> > pointers ???
> > Its very urgent please........
> >
> >
> > Thanks
> > Teja.P
>
> Can I raise an interrupt using PyErr_SetInterrupt??? Is so , does any
> one know how to do it?
I presume there is only one thread of execution here, so the file being
execfiled would have to recognise an error condition and raise an
un-caught exception.

- Paddy.




More information about the Python-list mailing list