Re: How to name Exceptions that aren't Errors

2005-04-15 Thread TZOTZIOY
On 7 Apr 2005 21:20:19 GMT, rumours say that Leo Breebaart <[EMAIL PROTECTED]> might have written: [Max about Leo] >> This guys famous in the alternative universe of >> alt.fan.pratchett. The little imp stopped moving the memory blocks around as soon as it heard the distinct click of the name "Br

Re: How to name Exceptions that aren't Errors

2005-04-08 Thread Steve Holden
Leif K-Brooks wrote: Steve Holden wrote: I've even used an exception called Continue to overcome an irksome restriction in the language (you used not to be able to continue a loop from an except clause). Out of curiosity, how could you use an exception to do that? I would think you would need to

Re: How to name Exceptions that aren't Errors

2005-04-08 Thread Scott David Daniels
Leif K-Brooks wrote: Steve Holden wrote: I've even used an exception called Continue to overcome an irksome restriction in the language (you used not to be able to continue a loop from an except clause). Out of curiosity, how could you use an exception to do that? I would think you would need to

Re: How to name Exceptions that aren't Errors

2005-04-08 Thread Leif K-Brooks
Steve Holden wrote: I've even used an exception called Continue to overcome an irksome restriction in the language (you used not to be able to continue a loop from an except clause). Out of curiosity, how could you use an exception to do that? I would think you would need to catch it and then use

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Steve Holden
Roy Smith wrote: [...] I think my code is clearer, but I wouldn't go so far as to say I'm violently opposed to your code. I save violent opposition for really important matters like which text editor you use. +1 QOTW regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden W

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Roy Smith
Leo Breebaart <[EMAIL PROTECTED]> wrote: > I've recently become rather fond of using Exceptions in Python to > signal special conditions that aren't errors, but which I feel > are better communicated up the call stack via the exception > mechanism than via e.g. return values. > > For instance, I'

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Bengt Richter
On Thu, 07 Apr 2005 15:40:24 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >Leo Breebaart wrote: >> I've recently become rather fond of using Exceptions in Python to >> signal special conditions that aren't errors, but which I feel >> are better communicated up the call stack via the exception >>

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Leo Breebaart
Max <[EMAIL PROTECTED]> writes: > LOOK EVERYONE, it's Leo Breebart. You are the same Leo > Breebart, right? Breeb*aa*rt. But otherwise, yeah -- I do frequent more than just one newsgroup. :-) > This guys famous in the alternative universe of > alt.fan.pratchett. I doubt anybody here cares! Who

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Aahz
In article <[EMAIL PROTECTED]>, Leo Breebaart <[EMAIL PROTECTED]> wrote: > >My question is twofold. First, I know that many programmers are >violently opposed to using exceptions in this fashion, i.e. for >anything other than, well, exceptional circumstances. But am I correct >in thinking that in

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Max
Leo Breebaart wrote: I've recently become rather fond of using Exceptions in Python to signal special conditions that aren't errors, but which I feel are better communicated up the call stack via the exception mechanism than via e.g. return values. Ummm... yeah, I quite agree. LOOK EVERYONE, it's L

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread F. Petitjean
Le 7 Apr 2005 19:23:21 GMT, Leo Breebaart a écrit : > I've recently become rather fond of using Exceptions in Python to > signal special conditions that aren't errors, but which I feel > are better communicated up the call stack via the exception > mechanism than via e.g. return values. > > For in

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Steve Holden
Leo Breebaart wrote: I've recently become rather fond of using Exceptions in Python to signal special conditions that aren't errors, but which I feel are better communicated up the call stack via the exception mechanism than via e.g. return values. Absolutely. For instance, I'm thinking of methods

How to name Exceptions that aren't Errors

2005-04-07 Thread Leo Breebaart
I've recently become rather fond of using Exceptions in Python to signal special conditions that aren't errors, but which I feel are better communicated up the call stack via the exception mechanism than via e.g. return values. For instance, I'm thinking of methods such as: def run(self):