Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:
I was trying to figure out how code like this could ever *not* raise an exception, and here is one case that runs to completion on 3.6--3.8, but it raises `TypeError: 'str' object is not callable` on 3.9--3.11. class I(int): def __init__(*args, **kwargs): pass def __new__(*args, **kwargs): pass d = {'metaclass': I} class A(1, 2, 3, **d): pass ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46161> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com