[New-bugs-announce] [issue22392] Clarify documentation of __getinitargs__
David Gilman
report at bugs.python.org
Thu Sep 11 20:52:32 CEST 2014
New submission from David Gilman:
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.
----------
assignee: docs at python
components: Documentation
messages: 226795
nosy: David.Gilman, docs at python
priority: normal
severity: normal
status: open
title: Clarify documentation of __getinitargs__
type: enhancement
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22392>
_______________________________________
More information about the New-bugs-announce
mailing list