Re: how to abort on syntax errors

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 13:21:22 -0400, Josh wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time erro

Re: how to abort on syntax errors

2007-03-26 Thread kyosohma
On Mar 26, 1:07 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: > >> I have a lot of except Exception, e statements in my code, which poses some > >> problems. One of the biggest is whenever I refactor even the trivia

Re: how to abort on syntax errors

2007-03-26 Thread Gabriel Genellina
En Mon, 26 Mar 2007 14:21:22 -0300, Josh <[EMAIL PROTECTED]> escribió: > I have a lot of except Exception, e statements in my code, which poses > some > problems. *many* problems, I'd say. Don't do that :) > One of the biggest is whenever I refactor even the triviallest > thing in my code. > >

Re: how to abort on syntax errors

2007-03-26 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: >> I have a lot of except Exception, e statements in my code, which poses some >> problems. One of the biggest is whenever I refactor even the triviallest >> thing in my code. >> >> I would like python to abort, almos

Re: how to abort on syntax errors

2007-03-26 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Josh wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time error, > whenev

Re: how to abort on syntax errors

2007-03-26 Thread skip
Josh> I have a lot of except Exception, e statements in my code, which Josh> poses some problems. One of the biggest is whenever I refactor Josh> even the triviallest thing in my code. Josh> I would like python to abort, almost as if it were a compile-time Josh> error, wheneve

Re: how to abort on syntax errors

2007-03-26 Thread kyosohma
On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time e

how to abort on syntax errors

2007-03-26 Thread Josh
I have a lot of except Exception, e statements in my code, which poses some problems. One of the biggest is whenever I refactor even the triviallest thing in my code. I would like python to abort, almost as if it were a compile-time error, whenever it cannot find a function, or if I introduced