Reputation: 17285
Why does Python's os
module contain error
, an alias for OSError
?
Is there a reason to ever spell it os.error
? OSError
certainly seems more consistent with all the other built-in exceptions.
I hoped os.py
would shed some light, but it uses error
sometimes and OSError
others.
It seems goofy to have an extra name for one of the exceptions, yet it survives into Python 3.0. What am I missing?
Upvotes: 7
Views: 1597