Kill a function while it's being executed

Robert Kern robert.kern at gmail.com
Tue Feb 17 14:25:09 EST 2009


On 2009-02-17 12:53, Noam Aigerman wrote:
> Hi,
> Sorry for resurrecting an old thread, but it just bothers me that this
> is the best way that python has to deal with killing running
> functions... it's quite an ugly hack, no?
>
> Is it a feature that's needed bit missing from python, or is it left out
> on purpose (same way like java has deprecated thread.stop and
> thread.suspend because they were not safe)?

Left out on purpose because it is not safe.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list