Hi Chris! I agree that raising a MemoryError is a debatable way to report the problem, but in general it is not safe to call setrecursionlimit with an arbitrarily high value, as that can lead to segfaults. This is definitely also true on CPython. The documentation says:
'The highest possible limit is platform-dependent. A user may need to set the limit higher when they have a program that requires deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash.' What are you trying to achieve? Why is a very deep recursion limit necessary here, and why can't you pick a more realistic number? Cheers, Carl Friedrich _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue