[issue10886] Unhelpful backtrace for multiprocessing.Queue
sbt
report at bugs.python.org
Mon Aug 29 18:10:55 CEST 2011
sbt <shibturn at gmail.com> added the comment:
mp_queue_pickle_in_main_thread.patch (against the default branch) fixes the problem by doing the pickling in Queue.put(). It is version of a patch for Issue 8037 (although I believe the behaviour complained about in Issue 8037 is not an actual bug).
The patch also has the advantage of ensuring that weakref callbacks and
__del__ methods for objects put in the queue will not be run in the
background thread. (Bytes objects have trivial destructors.) This
potentially prevents inconsistent state caused by forking a process
while the background thread is running -- see Issue 6721.
----------
keywords: +patch
nosy: +sbt
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file23062/mp_queue_pickle_in_main_thread.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10886>
_______________________________________
More information about the Python-bugs-list
mailing list