[Ironpython-users] Gradually executing a python script
jdhardy at gmail.com
Wed Jul 25 16:55:40 CEST 2012
On Wed, Jul 25, 2012 at 12:06 AM, Markus Schaber
<m.schaber at 3s-software.com> wrote:
> Hi, Jeff,
> Von: Jeff Hardy [mailto:jdhardy at gmail.com]
>> On Tue, Jul 24, 2012 at 11:22 AM, Jeff Hardy <jdhardy at gmail.com> 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:
> 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. :)
More information about the Ironpython-users