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 David.Gilman
Recipients David.Gilman, docs@python
Date 2014-09-11.18:52:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410461552.96.0.589396040073.issue22392@psf.upfronthosting.co.za>
In-reply-to
Content
Implementations of __getinitargs__ return a tuple of the positional arguments for __init__.   This wasn't initially apparent to me after reading the docs: I thought you were passing a tuple (args, kwargs) that would get called f(*args, **kwargs) and had to go to the pickle implementation to find out what you were supposed to do.

The proposed documentation enhancement: mention that you're just supposed to return a tuple of positional args and that it doesn't support kwargs.
History
Date User Action Args
2014-09-11 18:52:33David.Gilmansetrecipients: + David.Gilman, docs@python
2014-09-11 18:52:32David.Gilmansetmessageid: <1410461552.96.0.589396040073.issue22392@psf.upfronthosting.co.za>
2014-09-11 18:52:32David.Gilmanlinkissue22392 messages
2014-09-11 18:52:32David.Gilmancreate