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 yoch.melka
Recipients yoch.melka
Date 2013-07-04.14:03:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372946635.32.0.0668424170567.issue18359@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

If some class objects have extra arguments in the __new__ constructor , pickle fail to serialize it.

Here the output of provided test-case :

Traceback (most recent call last):
  File "/home/yoch/bug.py", line 19, in <module>
    y = pickle.load(fp)
TypeError: __new__() missing 1 required positional argument: 'arg'

Best regards
History
Date User Action Args
2013-07-04 14:03:55yoch.melkasetrecipients: + yoch.melka
2013-07-04 14:03:55yoch.melkasetmessageid: <1372946635.32.0.0668424170567.issue18359@psf.upfronthosting.co.za>
2013-07-04 14:03:55yoch.melkalinkissue18359 messages
2013-07-04 14:03:55yoch.melkacreate