Killing a thread
Greg Ewing
greg.ewing at compaq.com
Mon Jul 19 18:29:47 EDT 1999
catlee at my-deja.com wrote:
>
> - Is it conceivable that a user could make write some resource
> intensive code without using any kind of jump operations?
Yes!
def fib(n):
return {
0: lambda: 1,
1: lambda n=n: fib(n-1) + fib(n-2)
}[n>=3]()
Although if you include function calls as well
as jumps, you're probably safe (until Tim comes
up with an even more perverted counterexample).
Greg
More information about the Python-list
mailing list