This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients alexandre.vassalotti, asksol, dimitrios, jnoller
Date 2013-12-01.23:19:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385939961.07.0.395100319113.issue10717@psf.upfronthosting.co.za>
In-reply-to
Content
Look like I isolated the problem. It seems multiprocessing is using cPickle which cannot be extended with ForkingPickler, unlike the Python version of the pickle module.

15:09:29 [ ~/pythondev/python2.7 ]$ ./python.exe issue10717.py
Traceback (most recent call last):
  File "issue10717.py", line 8, in <module>
    p.apply(Test().hello, ("jimbo",))
  File "/Users/avassalotti/PythonDev/python2.7/Lib/multiprocessing/pool.py", line 244, in apply
    return self.apply_async(func, args, kwds).get()
  File "/Users/avassalotti/PythonDev/python2.7/Lib/multiprocessing/pool.py", line 558, in get
    raise self._value
cPickle.PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed
History
Date User Action Args
2013-12-01 23:19:21alexandre.vassalottisetrecipients: + alexandre.vassalotti, jnoller, asksol, dimitrios
2013-12-01 23:19:21alexandre.vassalottisetmessageid: <1385939961.07.0.395100319113.issue10717@psf.upfronthosting.co.za>
2013-12-01 23:19:21alexandre.vassalottilinkissue10717 messages
2013-12-01 23:19:20alexandre.vassalotticreate