Hello all, Setting the recursion limit on an embedded PythonEngine also affects the current engine. (We were hoping that using an embedded engine would shield our main environment from our users doing daft things like this in their code).
>>> from IronPython.Hosting import PythonEngine >>> >>> e = PythonEngine() >>> e.Sys.getrecursionlimit() 2147483647 >>> e.Sys.setrecursionlimit(2) >>> import sys >>> sys.getrecursionlimit() 2 >>> e.Sys.getrecursionlimit() 2 By the way - the 'sys' module is a 'SystemState' object, which isn't in the API documentation (at least not in 1.0.1). We had to dig into the sources (which wasn't such a bad thing) to learn about it. Thanks Michael Foord http://www.voidspace.org.uk/ironpython/index.shtml _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
