[issue39382] abstract_issubclass() doesn't take bases tuple item ref
Serhiy Storchaka
report at bugs.python.org
Sun Feb 16 02:53:55 EST 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Thank you for your report and patch. Agree that the code does not look safe. Do you mind to create a pull request?
Would be nice to add a test for it. The three references to the Python class are:
* the __dict__ descriptor
* the __weakref__ descriptor
* the __mro__ tuple
You can get rid of the first two by setting __slots__ = () in the class definition. But it is not so easy with the __mro__ tuple. I will try more.
----------
versions: +Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39382>
_______________________________________
More information about the Python-bugs-list
mailing list