Re: [Python-Dev] FW: Bare except clauses in PEP 348

2005-08-24 Thread Guido van Rossum
On 8/24/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > Hey guys, don't give up your bare except clauses so easily. They are an attractive nuisance by being so much shorter to type than the "right thing to do". Especially if they default to something whose use cases are rather esoteric (i.e. B

Re: [Python-Dev] FW: Bare except clauses in PEP 348

2005-08-24 Thread Ron Adam
Raymond Hettinger wrote: > Hey guys, don't give up your bare except clauses so easily. Yes, Don't give up. I often write code starting with a bare except, then after it works, stick a raise in it to determine exactly what exception I'm catching. Then use that to rewrite a more explicit except

Re: [Python-Dev] FW: Bare except clauses in PEP 348

2005-08-24 Thread Michael Chermside
Raymond writes: > Hey guys, don't give up your bare except clauses so easily. [...] Raymond: I agree that when comparing: // Code snippet A try: ... except SomeException: ... except BaseException: ... with // Code snippet B try: ... except