embedded python - cancel "while 1: pass"

Oleg Broytmann phd at phd.pp.ru
Thu Jan 4 11:31:30 EST 2001


On Thu, 4 Jan 2001, Warren Postma wrote:
> How about uninterruptible C code called via python, such as this:
>
> print 2L ** 2L ** 256
>
> I've let this run for 15 minutes and it didn't complete. There is no
> apparent way to abort it either, as it spends its time in long_mult and the
> Python scheduler doesn't even run. It must complete eventually. Any idea how
> long long_mult and long_pow will take to complete this?
>
> In that case, I think I'm still stuck with the Three Finger Salute method
> (reboot).

   Wow, it seems you are a Windows guy! Why not just kill the process
instead of rebooting everything?

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list