[Python-ideas] PEP 3151: Reworking the OS and IO exception hierarchy
Antoine Pitrou
solipsis at pitrou.net
Wed Jul 28 14:49:55 CEST 2010
Hello,
On Sat, 24 Jul 2010 14:31:42 -0700
"Gregory P. Smith" <greg at krypto.org> wrote:
>
> The EnvrionmentError hierarchy and common errno test code has bothered me
> for a while. While I think the namespace pollution concern is valid I would
> suggest adding "Error" to the end of all of the names (your initial proposal
> only says "Error" on the end of one of them) as that is consistent with the
> bulk of the existing standard exceptions and warnings. They are unlikely to
> conflict with anything other than exceptions people have already defined
> themselves in any existing code (which could likely be refactored out after
> we officially define these).
The reason I haven't added "Error" to them is that the names are
already quite long, and it's quite obvious that they refer to errors.
I'm obviously not religious about it, though :)
Regards
Antoine.
More information about the Python-ideas
mailing list