
April 9, 2011
12:59 a.m.
On Fri, Apr 8, 2011 at 3:56 PM, Eric Snow <ericsnowcurrently@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)