[issue44675] Cross-platform issues with private methods and multiprocessing

Andrei Kulakov report at bugs.python.org
Mon Nov 29 01:04:39 EST 2021


Andrei Kulakov <andrei.avk at gmail.com> added the comment:

The issue seems to be that there was a change between 3.7.7 and 3.8.6, - multiprocessing started using pickle dump / load which cannot handle double underscore methods.

See #33007 for a reproducer with pickle.

I'm using MacOS and this multiprocessing example in OP works fine in 3.7.7 and raises the same error as OP in 3.8.6. So from my side at least it doesn't appear to be a cross-platform issue (but I'm not sure why it worked on Linux on 3.8.10 for OP).

I've also reproduced it on the latest 3.11.

So this appears to be a regression and if there's an easy fix, it's probably worth fixing.

----------
nosy: +andrei.avk

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44675>
_______________________________________


More information about the Python-bugs-list mailing list