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 Kirill Matsaberydze, alexandre.vassalotti, benoit-pierre, georg.brandl, iritkatriel, jaraco, orivej, sbt, slallum, zseil
Date 2021-06-18.08:41:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is still the same in 3.11:

>>> import pickle
>>> class CustomException(Exception):
...     def __init__(self, arg1, arg2):
...         msg = "Custom message {} {}".format(arg1, arg2)
...         super().__init__(msg)
>>> obj_dump = pickle.dumps(CustomException("arg1", "arg2"))
>>> obj = pickle.loads(obj_dump)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: CustomException.__init__() missing 1 required positional argument: 'arg2'
Date User Action Args
2021-06-18 08:41:12iritkatrielsetrecipients: + iritkatriel, georg.brandl, jaraco, zseil, alexandre.vassalotti, orivej, sbt, slallum, Kirill Matsaberydze, benoit-pierre
2021-06-18 08:41:12iritkatrielsetmessageid: <>
2021-06-18 08:41:12iritkatriellinkissue32696 messages
2021-06-18 08:41:11iritkatrielcreate