Ezio Melotti added the comment:

That seems indeed to be the case with built-in exceptions.  I'm not sure if 
it's intentional or just a coincidence.  I agree that warnings should always 
have a "Warning" suffix to distinguish them from exceptions, but in the stdlib 
the "Error" suffix is not used consistently. There are exceptions like: 
FloatOperation, DivisionByZero, InvalidOperation, TimeoutExpired, 
BrokenProcessPool, BufferTooShort, ImproperConnectionState, UnknownProtocol, 
InvalidURL, etc..
Anyway I don't have a strong opinion about this, so if you think the name 
should be ModuleNotFoundError it's OK with me (i.e. I'm -0).


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to