On Wed, Jul 25, 2012 at 12:06 AM, Markus Schaber <[email protected]> wrote: > Hi, Jeff, > > Von: Jeff Hardy [mailto:[email protected]] >> >> On Tue, Jul 24, 2012 at 11:22 AM, Jeff Hardy <[email protected]> wrote: >> > >> > sys.settrace is your friend here. Basically, if a robot tries to >> > execute too many lines between yields (i.e. per turn), remove it from >> > the list of valid robots and show an error. >> >> Forgot to add: >> >> http://www.doughellmann.com/PyMOTW/sys/tracing.html > > I always found it a deficiency of IronPython settrace that it does not offer > events for calls to non-IronPython .NET methods (either statically compiled > from C#/VB/F#... or from other dynamic languages). > > cPython has c_call, c_return and c_exception for this. Maybe IronPython could > be extended to support those, or maybe dotnet_call, dotnet_return and > dotnet_exception.
Good idea. Open an issue (http://ironpython.codeplex.com/WorkItem/Create) so it doesn't get (completely) forgotten, and, as always, patches are welcome. :) - Jeff _______________________________________________ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
