[issue42334] Subclassing int and complex with keyword arguments weird

2020-11-12 Thread autospamfighter
autospamfighter added the comment: I tried some more classes and str is weird, but dict and set work fine. very weird -- ___ Python tracker <https://bugs.python.org/issue42

[issue42334] Subclassing int and complex with keyword arguments weird

2020-11-12 Thread autospamfighter
New submission from autospamfighter : I was trying to make a custom complex class that looked something like this and it failed. I replaced complex with int and it also failed, but I tried float and it worked. ---fail class A(complex): def __init__(self, test): super().__init__