[Stackless] how to enable stackless
Christian Tismer
tismer at tismer.com
Mon Sep 30 21:29:23 CEST 2002
Johann Höchtl wrote:
> Hello!
>
> I'm impressed about stackless and want to know more on how i can use it.
> I downloaded the latest dll.zip (Sept. 15) and fired python up. I saw a
> message that now the stackless python dll is in use.
>
> I tried the unlimited recursion feature using the ackermann's function
> but was rather disappointed that it failed with the same error massage
> as the regular cpython version (maximum recursion depth reached).
>
> What else do i have to specify to enable stackless?
>
> Is there up-to-date help available?
Not yet.
The system module has a function enable_stackless and also
one called setslicinginterval.
Please check their __doc__s for details.
Particularlz for deep recursions, I'd use something like
import sys
sys.enable_stackless(1)
sys.setrecursionlimit(sys.maxint)
ciao - chris
--
Christian Tismer :^) <mailto:tismer at tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 pager +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
_______________________________________________
Stackless mailing list
Stackless at www.tismer.com
http://www.tismer.com/mailman/listinfo/stackless
More information about the Stackless
mailing list