[issue33271] Exception handling should match subclasses, not subtypes

2018-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Let to keep the discussion in a single place -- in issue12029. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Allow catching virtual subclasses in except clauses

[issue33271] Exception handling should match subclasses, not subtypes

2018-04-13 Thread Michael McCoy
Michael McCoy added the comment: Serhiy, it sure is. I'll note that the issue is open. Moreover, reading through the history, Guido says it's a bug (msg160418), and there was agreement that it should be fixed. It's unclear why it was dropped. Can you help me get

[issue33271] Exception handling should match subclasses, not subtypes

2018-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't this a duplicate of issue12029? -- ___ Python tracker ___

[issue33271] Exception handling should match subclasses, not subtypes

2018-04-13 Thread Michael McCoy
Michael McCoy added the comment: Adding Serhiy because this relates to issue31091, and specifically claims that there _was_ a bug in the old code (msg299585). -- nosy: +serhiy.storchaka ___ Python tracker

[issue33271] Exception handling should match subclasses, not subtypes

2018-04-13 Thread Michael McCoy
Change by Michael McCoy : -- title: Exception handling matches subclasses, not subtypes -> Exception handling should match subclasses, not subtypes ___ Python tracker