Terminating an embedded interpreter

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Mon Sep 12 14:05:04 CEST 2011


Chris Angelico wrote:
> You can use PyErr_SetInterrupt to raise KeyboardInterrupt

This sounds useful. Just to make sure, this would be called from a different 
thread than the one running the Python script, is that still OK?

> , but it can be caught by the script. There's no guaranteed way,
> short of killing the process.

This will do for my plans, I'm not trying to defend against anything 
malicious.


Thanks you!

Uli


-- 
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list