Message277670
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. |
|
Date |
User |
Action |
Args |
2016-09-28 22:27:03 | berker.peksag | set | recipients:
+ berker.peksag, docs@python, David.Gilman |
2016-09-28 22:27:03 | berker.peksag | set | messageid: <1475101623.26.0.736318008038.issue22392@psf.upfronthosting.co.za> |
2016-09-28 22:27:03 | berker.peksag | link | issue22392 messages |
2016-09-28 22:27:03 | berker.peksag | create | |
|