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 raabf
Recipients bquinlan, gregory.p.smith, raabf
Date 2019-07-26.16:39:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564159190.81.0.416311161958.issue37287@roundup.psfhosted.org>
In-reply-to
Content
It seems to that this problem is affecting __new__ methods independent of exceptions:

>>> class NewBreaker:
...     def __new__(cls, arg):
...             return super().__new__(cls)
...
>>> nb = NewBreaker(42)
>>> import pickle
>>> dumped = pickle.dumps(nb)
>>> pickle.loads(dumped)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __new__() missing 1 required positional argument: 'arg'
History
Date User Action Args
2019-07-26 16:39:50raabfsetrecipients: + raabf, gregory.p.smith, bquinlan
2019-07-26 16:39:50raabfsetmessageid: <1564159190.81.0.416311161958.issue37287@roundup.psfhosted.org>
2019-07-26 16:39:50raabflinkissue37287 messages
2019-07-26 16:39:50raabfcreate