Message135392
| Author |
terry.reedy |
| Recipients |
cool-RR, jnoller, terry.reedy |
| Date |
2011年05月07日.00:33:16 |
| SpamBayes Score |
1.3440703e-06 |
| Marked as misclassified |
No |
| Message-id |
<1304728397.7.0.00371016947368.issue11969@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Running on winxp with IDLE, I get the second traceback, all the same after the first line. Given "target is the callable object to be invoked by the run() method.", I would have expected this to work too.
Problem is not builtins:
class C:
def f(s): print( 'here')
p = multiprocessing.Process(target=C.f, args=(C(),))
p.start()
gives same error, ending in
_pickle.PicklingError: Can't pickle <function f at 0x00FE5AE0>: it's not found as __main__.f |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月07日 00:33:18 | terry.reedy | set | recipients:
+ terry.reedy, jnoller, cool-RR |
| 2011年05月07日 00:33:17 | terry.reedy | set | messageid: <1304728397.7.0.00371016947368.issue11969@psf.upfronthosting.co.za> |
| 2011年05月07日 00:33:16 | terry.reedy | link | issue11969 messages |
| 2011年05月07日 00:33:16 | terry.reedy | create |
|