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 berker.peksag
Recipients David.Gilman, berker.peksag, docs@python
Date 2016-09-28.22:27:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475101623.26.0.736318008038.issue22392@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/2/library/pickle.html#object.__getinitargs__ states:

"If it is desirable that the __init__() method be called on unpickling, an old-style class can define a method __getinitargs__(), which should return a tuple containing the arguments to be passed to the class constructor (__init__() for example)."

However, there is no mention that it only accepts positional arguments.

This is a Python 2-only change and the documentation file is located at Doc/library/pickle.rst in 2.7 branch.
History
Date User Action Args
2016-09-28 22:27:03berker.peksagsetrecipients: + berker.peksag, docs@python, David.Gilman
2016-09-28 22:27:03berker.peksagsetmessageid: <1475101623.26.0.736318008038.issue22392@psf.upfronthosting.co.za>
2016-09-28 22:27:03berker.peksaglinkissue22392 messages
2016-09-28 22:27:03berker.peksagcreate