[Python-ideas] PEP-3151 pattern-matching

Devin Jeanpierre jeanpierreda at gmail.com
Thu Apr 7 19:44:10 CEST 2011


On Thu, Apr 7, 2011 at 4:43 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> You typically don't want that to happen in tight loops and
> except-clauses are designed to be cheap if they don't match.

Ah, well, you can always except IOError directly if performance is important.

Also, sorry, I left an error in my code. `msg=None` should be omitted.

Nonetheless it appears my idea has been discarded by now. Doesn't
matter too much, just wanted to get it off my chest. Thanks for the
time, everyone!

Devin Jeanpierre



More information about the Python-ideas mailing list