Message216797
When quoting from the docs, it is helpful to give a link.
https://docs.python.org/2/library/multiprocessing.html#examples
That also identifies the version.
I verified that the example fails on my 2.7.6 Windows 7 with
PicklingError: Can't pickle <type 'thread.lock'>: it's not found as thread.lock
Since the example has been removed for 3.x, a possible minimal fix would be to say that it does not work on Windows and remove the statement that implies that it does.
if sys.platform == 'win32': import multiprocessing.reduction
# make sockets pickable/inheritable |
|
Date |
User |
Action |
Args |
2014-04-18 20:03:21 | terry.reedy | set | recipients:
+ terry.reedy, r.david.murray, docs@python, sbt, wolma, jmaki |
2014-04-18 20:03:21 | terry.reedy | set | messageid: <1397851401.7.0.789989793274.issue21204@psf.upfronthosting.co.za> |
2014-04-18 20:03:21 | terry.reedy | link | issue21204 messages |
2014-04-18 20:03:21 | terry.reedy | create | |
|