Message409079
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 |
|
Date |
User |
Action |
Args |
2021-12-23 09:37:03 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, Mark.Shannon, zq1997 |
2021-12-23 09:37:03 | Dennis Sweeney | set | messageid: <1640252223.74.0.665552401922.issue46161@roundup.psfhosted.org> |
2021-12-23 09:37:03 | Dennis Sweeney | link | issue46161 messages |
2021-12-23 09:37:03 | Dennis Sweeney | create | |
|