[pypy-dev] setrecursionlimit deprecation?

Dan Stromberg drsalists at gmail.com
Sat Dec 11 20:17:17 CET 2010

I originally wrote the code (
http://stromberg.dnsalias.org/~strombrg/treap/ ) for CPython, where
the recursion depth was too low out of the box.  It sounds like on
pypy, I might actually be decreasing the recursion depth.

There probably should be a "set recursion depth to at least..."
function.  Or I should getrecursiondepth and inspect before

On Sat, Dec 11, 2010 at 9:10 AM, Leonardo Santagada <santagada at gmail.com> wrote:
> IIRC nothing, pypy knows how big the stack is (if you are using it
> limit stack size and not get a core dump).
> On Sat, Dec 11, 2010 at 2:41 PM, Dan Stromberg <drsalists at gmail.com> wrote:
>> BTW, what's going on with the deprecation of sys.setrecursionlimit?
>> What should I use instead?
>> /home/dstromberg/src/home-svn/backshift/trunk/treap.py:40:
>> DeprecationWarning: setrecursionlimit deprecated
>>  sys.setrecursionlimit(min_heap_size)
>> _______________________________________________
>> pypy-dev at codespeak.net
>> http://codespeak.net/mailman/listinfo/pypy-dev
> --
> Leonardo Santagada

More information about the Pypy-dev mailing list