File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -352,8 +352,9 @@ The following types can be pickled:
352352
353353* classes that are defined at the top level of a module
354354
355- * instances of such classes whose :attr: `__dict__ ` or :meth: `__setstate__ ` is
356- picklable (see section :ref: `pickle-protocol ` for details)
355+ * instances of such classes whose :attr: `__dict__ ` or the result of calling
356+ :meth: `__getstate__ ` is picklable (see section :ref: `pickle-protocol ` for
357+ details).
357358
358359Attempts to pickle unpicklable objects will raise the :exc: `PicklingError `
359360exception; when this happens, an unspecified number of bytes may have already
@@ -364,8 +365,8 @@ raised in this case. You can carefully raise this limit with
364365
365366Note that functions (built-in and user-defined) are pickled by "fully qualified"
366367name reference, not by value. This means that only the function name is
367- pickled, along with the name of the module the function is defined in. Neither the
368- function's code, nor any of its function attributes are pickled. Thus the
368+ pickled, along with the name of the module the function is defined in. Neither
369+ the function's code, nor any of its function attributes are pickled. Thus the
369370defining module must be importable in the unpickling environment, and the module
370371must contain the named object, otherwise an exception will be raised. [# ]_
371372
Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ Library
184184
185185- Issue 10527: make multiprocessing use poll() instead of select() if available.
186186
187- - Issue #16485: Fix file descriptor not being closed if file header patching
188- fails on closing of aifc file.
187+ - Issue #16485: Now file descriptors are closed if file header patching failed
188+ on closing an aifc file.
189189
190190- Issue #12065: connect_ex() on an SSL socket now returns the original errno
191191 when the socket's timeout expires (it used to return None).
You can’t perform that action at this time.
0 commit comments