Irit Katriel <iritkatr...@gmail.com> added the comment:

PR27648 fixes this, but it also breaks test_abc.test_issubclass_bad_arguments 
so it's not quite right.


I don't know this area, but I think the problem is in the place the PR changes, 
and that the issue is due to this difference in the type of __subclasses__ 
between C and Meta2:

>>> class C: pass
... 
>>> from abc import ABCMeta
>>> class AbstractMeta(type, metaclass=ABCMeta): pass
... 
>>> class Meta2(AbstractMeta): pass
... 
>>> C.__subclasses__
<built-in method __subclasses__ of type object at 0x7f96bf5040b0>
>>> Meta2.__subclasses__
<method '__subclasses__' of 'type' objects>

----------
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

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

Reply via email to