Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 140794d

Browse files
committed
merge heads
2 parents 6b3f8d3 + f29abd3 commit 140794d

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Doc/library/pickle.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

358359
Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`
359360
exception; 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

365366
Note that functions (built-in and user-defined) are pickled by "fully qualified"
366367
name 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
369370
defining module must be importable in the unpickling environment, and the module
370371
must contain the named object, otherwise an exception will be raised. [#]_
371372

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)