Message230716
| Author |
larkost |
| Recipients |
dan.oreilly, larkost, lee.clemens, sbt |
| Date |
2014年11月05日.22:07:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1415225229.91.0.552286719449.issue21367@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
We just got bitten by this issue because we are trying to be compatible across 2.x and 3.x (including 3.0-3.2). For anyone who runs into the "missing 1 required keyword-only argument: 'ctx'" here is an import statement that works:
try:
from multiprocessing import SimpleQueue
except ImportError:
from multiprocessing.queues import SimpleQueue
Replace SimpleQueue with JoinableQueue if you need that. Importing in the other order will wind you up in problems in 3.4.2+. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年11月05日 22:07:10 | larkost | set | recipients:
+ larkost, sbt, lee.clemens, dan.oreilly |
| 2014年11月05日 22:07:09 | larkost | set | messageid: <1415225229.91.0.552286719449.issue21367@psf.upfronthosting.co.za> |
| 2014年11月05日 22:07:09 | larkost | link | issue21367 messages |
| 2014年11月05日 22:07:09 | larkost | create |
|