One more question: I want to use this callback to abort python execution in
certain cases. I'm currently thinking the best way to go about this would be
to throw an exception in the callback I hook up.
About like:
public static class PythonCallback
{
public static void Callb
Thanks a million, I'll start experimenting with that right away. Looks just
exactly like what I need, thanks again.
Cheers,
Markus Hajek
Team Vienna - Kazemi, Hajek & Pisarik OG
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Martin Maly
Gesendet: Montag, 16. April 2007
Hello all,
I'm trying to experiment with using AppDomains from IronPython - and not
getting very far.
I've created a simple assembly in C#, containing the following :
using System;
namespace goodbye
{
public class GoodbyeWorld
{
public void test()
{
Console.WriteLine("Goodbye World!");
}
}
}
It is not possible to do this without change to code generation at this point.
Essentially you could do something like this:
public class MyCallbackClass {
public void MyCallback() {
//
}
}
And then emit call to this utility wherever you like:
cg.EmitCall(typeof(MyCallbackClass).
Hi,
is there a way to execute a callback whenever a Python statement is about to
be executed (or just has executed)? With Python statements, I mean method
calls, operators, assignments.
And if there's no such way, how would I have to go about changing code
generation to facilitate that?
Many tha