test for absence of infinite loop

Alister alister.ware at ntlworld.com
Tue Jul 17 10:37:33 EDT 2018


On Tue, 17 Jul 2018 10:10:49 +0100, Robin Becker wrote:

> A user reported an infinite loop in reportlab. I determined a possible
> cause and fix and would like to test for absence of the loop. Is there
> any way to check for presence/absence of an infinite loop in python? I
> imagine we could do something like call an external process and see if
> it takes too long, but that seems a bit flaky.

google halting problem & you will see that this is an impossible request



-- 
I hate quotations.
		-- Ralph Waldo Emerson



More information about the Python-list mailing list