[Python-ideas] PEP-3151 pattern-matching

Guido van Rossum guido at python.org
Sat Apr 9 00:59:16 CEST 2011


On Fri, Apr 8, 2011 at 3:56 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> Consider how much IO is used in Python and how often people have to deal
> with IO exceptions.  Why should we have to deal with errnos if there is a
> way that fits into the exception hierarchy?  It's not that they are obscure.
>  It's that we don't need the actual numbers or mnemonics  in our Python
> code.  We can hide them behind more meaningful exceptions.  At least, that's
> my take.

You can use more useful exceptions for *some* errnos. But not for all.

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list