[issue11969] Can't launch Process on built-in static method
Terry J. Reedy
report at bugs.python.org
Sat May 7 02:33:17 CEST 2011
Terry J. Reedy <tjreedy at udel.edu> added the comment:
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
----------
nosy: +jnoller, terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11969>
_______________________________________
More information about the Python-bugs-list
mailing list