control structures (was "Re: Sins")

William Tanksley wtanksle at hawking.armored.net
Thu Jan 6 19:44:27 EST 2000


On Thu, 06 Jan 2000 23:11:55 GMT, Preston Landers wrote:
>In article <14452.45436.641890.197509 at beluga.mojam.com>,
>  skip at mojam.com (Skip Montanaro) wrote:

>> I find nothing wrong with it.  Some people object to using try/except
>> for anything but handling errors however.

>IMHO these people need to be taken out, shown a good time, maybe a
>little wine and dancing.  you know, let off a little steam.

Sounds good.  I didn't used to worry about it, but I guess I'm willing to
change.  ;-)

>I've had at least one situation where it made perfect sense to use
>try/except to handle non-error conditions.  In fact, I had defined a
>bunch of exceptions relating to specific conditions, and it also made
>sence to define a success condition and catch that rather than handle it
>as a special case (different control structure.)

A special case is another word for an exception.  Thus you didn't do
anything out of line.

>|| Preston Landers <prestonlanders at my-deja.com> ||

-- 
-William "Billy" Tanksley, in hoc signo hack



More information about the Python-list mailing list