Re: Optimize flag question

2006-02-26 Thread Felipe Almeida Lessa
Em Sáb, 2006-02-25 às 17:56 -0800, [EMAIL PROTECTED] escreveu: > Steve Holden wrote: > > > Some other functions rely on the AssertionError exception to indicate to > > > the user that something went wrong instead of using a user defined > > > exception. > > > > > > > The real problem here is that y

Re: Optimize flag question

2006-02-25 Thread Steven D'Aprano
On Sat, 25 Feb 2006 17:56:42 -0800, bonono wrote: > > Steve Holden wrote: >> > Some other functions rely on the AssertionError exception to indicate to >> > the user that something went wrong instead of using a user defined >> > exception. >> > >> >> The real problem here is that you appear to be

Re: Optimize flag question

2006-02-25 Thread bonono
Steve Holden wrote: > > Some other functions rely on the AssertionError exception to indicate to > > the user that something went wrong instead of using a user defined > > exception. > > > > The real problem here is that you appear to be using AssertionError in > an inappropriate way. If some call

Re: Optimize flag question

2006-02-25 Thread Steve Holden
[copied to python-list] Olivier Langlois wrote: > Hi Steve! > >>Could you outline the code that needs to be in to make the program > > work, > >>so we can assess the errors for ourselves? >> > > > There is nothing unfixable. There are some instances where the code is > checking a function ret

Re: Optimize flag question

2006-02-25 Thread Raymond Hettinger
[Olivier Langlois] > > So my question is: what are the 'optimizations' that the Python > > interpreter is doing when you specify the optimize flag and is there > > anything I should be cautious about when using it? Currently, -O provides no optimizations other than eliminating assertions. Raymon

Re: Optimize flag question

2006-02-24 Thread Steve Holden
Olivier Langlois wrote: > Hi, > > > > This is my first post on the list. I played with the –O flag option and > I found the hard way that it was breaking the scripts I am using because > they rely on the assert statement that the optimize flag remove. From > there, I tried to find more infor

Optimize flag question

2006-02-24 Thread Olivier Langlois
Hi,   This is my first post on the list. I played with the –O flag option and I found the hard way that it was breaking the scripts I am using because they rely on the assert statement that the optimize flag remove. From there, I tried to find more information on the effect that this flag