[python-win32] How to interrupt embedded python interpreter
mhammond at keypoint.com.au
Mon Mar 15 04:07:29 EST 2004
Pythonwin uses PyErr_SetInterrupt() to implement this via the taskbar icon,
and it seems to work OK.
> -----Original Message-----
> From: python-win32-bounces at python.org
> [mailto:python-win32-bounces at python.org]On Behalf Of Chaffin, Michael
> Sent: Saturday, 13 March 2004 10:10 AM
> To: 'python-win32 at python.org'
> Subject: [python-win32] How to interrupt embedded python interpreter
> I am trying to figure a way to pass on an interrupt to embedded python
> interpreters, specifically say when the my python script
> object goes out of
> scope. I have found an article by Stefan Migowky titled,
> 'Embedded python:
> how to force a break to endless looping python'.
> wsintern.dspace.de&rnum=13 )
> The problem I see with this solution is patching the python
> dll, and the
> patch is kind of old. Is there another way to interrupt
> embedded python
> interpreters ?
> If not, will the patch from Stefan still work on python 2.2 or 2.3 ?
> Michael S. Chaffin
> Python-win32 mailing list
> Python-win32 at python.org
More information about the Python-win32