This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients gvanrossum, iritkatriel, petr.viktorin, yselivanov
Date 2022-01-24.15:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643038935.81.0.361981698478.issue46431@roundup.psfhosted.org>
In-reply-to
Content
The error message isn't always this bad:

>>> class Base:
...     def __new__(cls, a, b, c):
...        cls.newargs = (a,b,c)
...     
... 
>>> class Derived(Base):
...     def __init__(self, x):
...         super().__init__(x)
...         self.initargs = (x,)
... 
>>> Derived(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Base.__new__() missing 2 required positional arguments: 'b' and 'c'
History
Date User Action Args
2022-01-24 15:42:15iritkatrielsetrecipients: + iritkatriel, gvanrossum, petr.viktorin, yselivanov
2022-01-24 15:42:15iritkatrielsetmessageid: <1643038935.81.0.361981698478.issue46431@roundup.psfhosted.org>
2022-01-24 15:42:15iritkatriellinkissue46431 messages
2022-01-24 15:42:15iritkatrielcreate