Message143154
| Author |
sbt |
| Recipients |
sbt, torsten |
| Date |
2011年08月29日.16:10:53 |
| SpamBayes Score |
1.3358137e-09 |
| Marked as misclassified |
No |
| Message-id |
<1314634255.58.0.381345153558.issue10886@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年08月29日 16:10:55 | sbt | set | recipients:
+ sbt, torsten |
| 2011年08月29日 16:10:55 | sbt | set | messageid: <1314634255.58.0.381345153558.issue10886@psf.upfronthosting.co.za> |
| 2011年08月29日 16:10:54 | sbt | link | issue10886 messages |
| 2011年08月29日 16:10:54 | sbt | create |
|