George-Cristian Bîrzan <gcbir...@gmail.com> added the comment:

I posted on python dev that this would slow exception checking considerably so 
that is a concern. As for possible bugs, this has been working in the 2 branch 
for a while now, so I don't think that is the biggest issue. 
As for possible use cases, writing a wrapper around backend, each with its own 
exceptions and still being able to catch a 'base' exception in your code while 
still having the ability to catch specific exceptions, without doing awkward 
stuff like looking at __cause__ (let alone that you have to reraise that in 2 
for code that has to run on both branches). Yes, you could patch the 
exceptions' bases but that is what Abc was created to avoid. 

Sorry for the mistakes and weird phrasing, posting this off my phone.

----------
nosy: +gcbirzan

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

Reply via email to