Michael McCoy added the comment:
Checking my comment history here, a past me was terribly bad at linking the
correct PR on github.This is the correct link:
https://github.com/python/cpython/pull/6461
On Mon, Feb 7, 2022 at 10:12 AM Guido van Rossum
wrote:
>
> Guido van Rossum add
Michael McCoy added the comment:
Sorry, my last message referred to Github PR6460 / pull_request6160.
--
versions: +Python 3.4, Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue12
Michael McCoy added the comment:
Amalgamating the patch history here, I've updated the tests on Github (PR6160)
to include tests for both the recursive case and ensure the correct error is
propagated up if an exception occurs during the subclass check.
I've also added a check to e
Change by Michael McCoy :
--
pull_requests: +6160
___
Python tracker
<https://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 this in? I
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
<https://bugs.python.org/issue33
Change by Michael McCoy :
--
title: Exception handling matches subclasses, not subtypes -> Exception
handling should match subclasses, not subtypes
___
Python tracker
<https://bugs.python.org/issu
Change by Michael McCoy :
--
title: Exception handling matches subtypes, not subclasses -> Exception
handling matches subclasses, not subtypes
___
Python tracker
<https://bugs.python.org/issu
New submission from Michael McCoy :
Exception handling matches subtypes, not subclasses
# Example
from abc import ABC
class MyException(Exception, ABC):
pass
class OtherException(Exception):
pass
MyException.register(OtherException)
try