2006/9/27, Mike McGavin <[EMAIL PROTECTED]>: > What's the expected behaviour with infinite recursion in IronPython, > and is there some way I can set a maximum recursion depth on a > PythonEngine object?
It's same as CPython. The difference is that the maximum recursion depth is not set by default on IronPython. So just set it. IronPython 1.0.2448 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys >>> sys.getrecursionlimit() 2147483647 >>> sys.setrecursionlimit(1000) And you will get a nice RuntimeError. -- Seo Sanghyeon _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
