Hi all,
I have the strangest error I have seen for a while in Python (version 3.0).
Changing the signature of the function affects whether super()
works, despite the fact that it takes no arguments. Can you explain why this occurs?
Thanks,
Chris
>>> class tmp:
... def __new__(*args):
... super()
...
>>> tmp()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 3, in __new__
SystemError: super(): no arguments
>>> class tmp:
... def __new__(mcl,*args):
... super()
...
>>> tmp()
>>>