File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -418,10 +418,11 @@ Pickling and unpickling normal class instances
418
418
When a pickled class instance is unpickled, its :meth: `__init__ ` method is
419
419
normally *not * invoked. If it is desirable that the :meth: `__init__ ` method
420
420
be called on unpickling, an old-style class can define a method
421
- :meth: `__getinitargs__ `, which should return a *tuple * containing the
421
+ :meth: `__getinitargs__ `, which should return a *tuple * of positional
422
422
arguments to be passed to the class constructor (:meth: `__init__ ` for
423
- example). The :meth: `__getinitargs__ ` method is called at pickle time; the
424
- tuple it returns is incorporated in the pickle for the instance.
423
+ example). Keyword arguments are not supported. The :meth: `__getinitargs__ `
424
+ method is called at pickle time; the tuple it returns is incorporated in the
425
+ pickle for the instance.
425
426
426
427
.. method :: object.__getnewargs__()
427
428
You can’t perform that action at this time.
0 commit comments