Message411478
Can we close this now?
>>> class A(object):
... def __new__(self):
... raise TypeError('i do not exist')
...
>>> class B(A):
... __new__ = object.__new__
... def __init__(self, x):
... self.x = x
...
>>> B(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object.__new__() takes exactly one argument (the type to instantiate)
>>> |
|
Date |
User |
Action |
Args |
2022-01-24 15:15:42 | iritkatriel | set | recipients:
+ iritkatriel, doko, scoder, vstinner, larry, sebastinas, benjamin.peterson, ned.deily, aronacher, prologic, Trundle, Ringding, python-dev, serhiy.storchaka, jdemeyer, ppperry, thansen |
2022-01-24 15:15:42 | iritkatriel | set | messageid: <1643037342.08.0.0543865936885.issue5322@roundup.psfhosted.org> |
2022-01-24 15:15:42 | iritkatriel | link | issue5322 messages |
2022-01-24 15:15:42 | iritkatriel | create | |
|