mirror of
https://github.com/python/cpython.git
synced 2025-10-28 17:13:08 +00:00
Issue #27221: Merge from 3.5
This commit is contained in:
commit
db287b5ca7
1 changed files with 1 additions and 6 deletions
|
|
@ -2729,12 +2729,7 @@ start method.
|
||||||
|
|
||||||
More picklability
|
More picklability
|
||||||
|
|
||||||
Ensure that all arguments to :meth:`Process.__init__` are
|
Ensure that all arguments to :meth:`Process.__init__` are picklable.
|
||||||
picklable. This means, in particular, that bound or unbound
|
|
||||||
methods cannot be used directly as the ``target`` (unless you use
|
|
||||||
the *fork* start method) --- just define a function and use that
|
|
||||||
instead.
|
|
||||||
|
|
||||||
Also, if you subclass :class:`~multiprocessing.Process` then make sure that
|
Also, if you subclass :class:`~multiprocessing.Process` then make sure that
|
||||||
instances will be picklable when the :meth:`Process.start
|
instances will be picklable when the :meth:`Process.start
|
||||||
<multiprocessing.Process.start>` method is called.
|
<multiprocessing.Process.start>` method is called.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue