Message226795
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. |
|
Date |
User |
Action |
Args |
2014-09-11 18:52:33 | David.Gilman | set | recipients:
+ David.Gilman, docs@python |
2014-09-11 18:52:32 | David.Gilman | set | messageid: <1410461552.96.0.589396040073.issue22392@psf.upfronthosting.co.za> |
2014-09-11 18:52:32 | David.Gilman | link | issue22392 messages |
2014-09-11 18:52:32 | David.Gilman | create | |
|