Re: Step-by-step exec

2008-11-07 Thread M.-A. Lemburg
On 2008-11-07 11:48, [EMAIL PROTECTED] wrote: > On Nov 7, 11:20 am, Steven D'Aprano <[EMAIL PROTECTED] > cybersource.com.au> wrote: > >>> What I am trying to do is to execute it "step-by-step", so that I can >>> capture the exception if one line (or multi-line statement) fails, print >>> a warning

Re: Step-by-step exec

2008-11-07 Thread gregory . lielens
On Nov 7, 11:20 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > > What I am trying to do is to execute it "step-by-step", so that I can > > capture the exception if one line (or multi-line statement) fails, print > > a warning about the failure, and continue the execution fo th

Re: Step-by-step exec

2008-11-07 Thread gregory . lielens
On Nov 6, 9:53 pm, Aaron Brady <[EMAIL PROTECTED]> wrote: > Check out the InteractiveConsole and InteractiveInterpreter classes. > Derive a subclass and override the 'push' method.  It's not documented > so you'll have to examine the source to find out exactly when and what > to override. Thanks,

Re: Step-by-step exec

2008-11-07 Thread Steven D'Aprano
On Thu, 06 Nov 2008 03:27:53 -0800, gregory.lielens wrote: > Hi, > > I am using a small python file as an input file (defining constants, > parameters, input data, ...) for a python application. The input file is > simply read by an exec statement in a specific dictionary, and then the > applicat

Re: Step-by-step exec

2008-11-06 Thread Aaron Brady
On Nov 6, 7:11 am, [EMAIL PROTECTED] wrote: > On Nov 6, 1:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > On Nov 6, 4:27 pm, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I am using a small python file as an input file (defining constants, > > > parameters, input data, ...) for a pytho

Re: Step-by-step exec

2008-11-06 Thread gregory . lielens
On Nov 6, 1:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 6, 4:27 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I am using a small python file as an input file (defining constants, > > parameters, input data, ...) for a python application. > > The input file is simply read by an

Re: Step-by-step exec

2008-11-06 Thread [EMAIL PROTECTED]
On Nov 6, 4:27 pm, [EMAIL PROTECTED] wrote: > Hi, > > I am using a small python file as an input file (defining constants, > parameters, input data, ...) for a python application. > The input file is simply read by an exec statement in a specific > dictionary, and then the application retrieve all