Re: Assertion for python scripts

2007-11-23 Thread Steven W. Orr
On Friday, Nov 2nd 2007 at 14:14 -, quoth matthias: =>Howdy ! => =>I started using the assert() stmt and found it quite useful :-) I =>have only one problem: I don't =>know how to turn them off again. => =>I know that "-O" turns off assertions in general. However, how do I =>pass thus param

Re: Assertion for python scripts

2007-11-05 Thread Carl Banks
On Nov 2, 11:22 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Nov 2, 2:14 pm, matthias <[EMAIL PROTECTED]> wrote: > > > Here is my question: How do I maintain debug / release builds that > > allow me to switch > > debug stmts, like assert, on / off ? > > If you want to distribute a single-file op

Re: Assertion for python scripts

2007-11-02 Thread Carl Banks
On Nov 2, 2:14 pm, matthias <[EMAIL PROTECTED]> wrote: > Here is my question: How do I maintain debug / release builds that > allow me to switch > debug stmts, like assert, on / off ? If you want to distribute a single-file optimized version, perhaps embedding the Python code as a here-file in a

Re: Assertion for python scripts

2007-11-02 Thread Gabriel Genellina
En Fri, 02 Nov 2007 16:53:12 -0300, matthias <[EMAIL PROTECTED]> escribió: > On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote: >> On 11/2/07, matthias <[EMAIL PROTECTED]> wrote: >> >> > I know that "-O" turns off assertions in general. However, how do I >> > pass thus parameter to

Re: Assertion for python scripts

2007-11-02 Thread Bart.
Friday 02 of November 2007 22:07:42 matthias napisał(a): > > check this: > > > > python ./assert.pyo > > Yes, I know that this works. Thanx. However, that's not what I was > going for. > > Essentially, I am targeting a build system that allows me to build > debug / release versions > of my Pytho

Re: Assertion for python scripts

2007-11-02 Thread matthias
On Nov 2, 1:29 pm, "Bart." <[EMAIL PROTECTED]> wrote: > Friday 02 of November 2007 20:53:12 matthias napisa (a): > > > > > On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote: > > > On 11/2/07, matthias <[EMAIL PROTECTED]> wrote: > > > > Howdy ! > > > > > I started using the assert() stmt

Re: Assertion for python scripts

2007-11-02 Thread Bart.
Friday 02 of November 2007 20:53:12 matthias napisał(a): > On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote: > > On 11/2/07, matthias <[EMAIL PROTECTED]> wrote: > > > Howdy ! > > > > > > I started using the assert() stmt and found it quite useful :-) I > > > have only one problem: I

Re: Assertion for python scripts

2007-11-02 Thread matthias
On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote: > On 11/2/07, matthias <[EMAIL PROTECTED]> wrote: > > > > > Howdy ! > > > I started using the assert() stmt and found it quite useful :-) I > > have only one problem: I don't > > know how to turn them off again. > > > I know that "-O"

Re: Assertion for python scripts

2007-11-02 Thread Matt McCredie
On 11/2/07, matthias <[EMAIL PROTECTED]> wrote: > Howdy ! > > I started using the assert() stmt and found it quite useful :-) I > have only one problem: I don't > know how to turn them off again. > > I know that "-O" turns off assertions in general. However, how do I > pass thus parameter to > p

Assertion for python scripts

2007-11-02 Thread matthias
Howdy ! I started using the assert() stmt and found it quite useful :-) I have only one problem: I don't know how to turn them off again. I know that "-O" turns off assertions in general. However, how do I pass thus parameter to python to an executable script ? I have tried the following: 1.