Re: execute a function after each source code line ?

2007-06-01 Thread Steve Howell
--- stef [EMAIL PROTECTED] wrote: doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code. [...] (btw the whole program is running as an graphical (wxPython) application) I worked on an open source project that

Re: execute a function after each source code line ?

2007-06-01 Thread Steve Howell
--- Diez B. Roggisch [EMAIL PROTECTED] wrote: Are there any other (simple) ways of achieving this ? (btw the whole program is running as an graphical (wxPython) application) use the python trace facilities. http://docs.python.org/lib/module-trace.html I'm not sure how much that

execute a function after each source code line ?

2007-06-01 Thread stef
hello, doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code. Now I need todo some checks and give visual feedback to the user, each time a line of code is executed. One way of realizing this, is to add a

Re: execute a function after each source code line ?

2007-06-01 Thread stef
Steve Howell wrote: --- stef [EMAIL PROTECTED] wrote: doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code. [...] (btw the whole program is running as an graphical (wxPython) application) I

Re: execute a function after each source code line ?

2007-06-01 Thread stef
Diez B. Roggisch wrote: stef wrote: hello, doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code. Now I need todo some checks and give visual feedback to the user, each time a line of code is executed.

Re: execute a function after each source code line ?

2007-06-01 Thread Diez B. Roggisch
stef wrote: hello, doing a simulation of another language (JAL), I translate the other language into Python code, then I execute this converted Python code. Now I need todo some checks and give visual feedback to the user, each time a line of code is executed. One way of realizing

Re: execute a function after each source code line ?

2007-06-01 Thread Steve Howell
--- stef [EMAIL PROTECTED] wrote: the language I want to simulate (JAL), is very Pascal like, and therefor can be easily converted into equivalent Python code. One more idea. If you haven't already, maybe you can post something to the PyPy community to effect of this: ''' I have a

Re: execute a function after each source code line ?

2007-06-01 Thread Steve Howell
--- stef [EMAIL PROTECTED] wrote: Steve, that's exactly what I've in mind. The screen shots, looks really good, and I'll definitely will take a deeper look into your code. Cool, good luck. Feel free to contact me privately if you have questions about the implementation. There's also a