File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,8 +390,9 @@ The following types can be pickled:
390390
391391* classes that are defined at the top level of a module
392392
393- * instances of such classes whose :attr: `__dict__ ` or :meth: `__setstate__ ` is
394- picklable (see section :ref: `pickle-inst ` for details)
393+ * instances of such classes whose :attr: `__dict__ ` or the result of calling
394+ :meth: `__getstate__ ` is picklable (see section :ref: `pickle-inst ` for
395+ details).
395396
396397Attempts to pickle unpicklable objects will raise the :exc: `PicklingError `
397398exception; when this happens, an unspecified number of bytes may have already
@@ -402,8 +403,8 @@ raised in this case. You can carefully raise this limit with
402403
403404Note that functions (built-in and user-defined) are pickled by "fully qualified"
404405name reference, not by value. This means that only the function name is
405- pickled, along with the name of the module the function is defined in. Neither the
406- function's code, nor any of its function attributes are pickled. Thus the
406+ pickled, along with the name of the module the function is defined in. Neither
407+ the function's code, nor any of its function attributes are pickled. Thus the
407408defining module must be importable in the unpickling environment, and the module
408409must contain the named object, otherwise an exception will be raised. [# ]_
409410
You can’t perform that action at this time.
0 commit comments