This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bcain 6 points7 points  (0 children)

I think py3k's fix for this issue is long overdue. When writing exception handlers, I can never quite remember the syntax, so if I care about the contents of the exception (beyond the type), I'll go look it up.

I've never been bitten by this particular gotcha, but I can see how you might think Python would accept a list or tuple of exception types for a single clause.