On Mon, 11 Oct 2010 05:42:39 -0700, Ethan Furman wrote: >>>If I'm catching exceptions in order to perform clean-up, I'll use a bare >>>except and re-raise the exception afterwards. In that situation, a bare >>>except is usually the right thing to do. >> >> Wrong way to do it. > > What, then, is the right way to do it?
I presume that he's referring to "finally". Which is reasonable enough given what I wrote, but isn't always convenient. My point was that bare excepts aren't a problem if you're going to re-raise the exception. -- http://mail.python.org/mailman/listinfo/python-list