Guido van Rossum <gu...@python.org> added the comment:

I think as a general recommendation it is not such a good idea that we should 
specifically mention it. (Is it in PEP 8 too? If so it should be removed there 
too.)

It's a pattern that is sometimes helpful, sometimes not. I don't think that 
people need to hear about it from the official docs about exceptions. People 
can learn from the standard exception hierarchy that sometimes it's useful to 
have a common base class *for exceptions that are related in some way*, in 
particular if there would be a reason to catch all of them with the same 
handler.

So I'm in agreement with Nathaniel M here.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34538>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to