[issue37297] function changed when pickle bound method object

2019-06-17 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue37297] function changed when pickle bound method object

2019-06-17 Thread Géry
Géry added the comment: The previous `_pickle.PicklingError` seems to only affect Windows. -- ___ Python tracker ___ ___ Python-bugs

[issue37297] function changed when pickle bound method object

2019-06-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue37297] function changed when pickle bound method object

2019-06-17 Thread Géry
Géry added the comment: @George Xie There is an issue with the Python workaround `multiprocessing.reduction.register(types.MethodType, my_reduce)` that you proposed. If you then instantiate a `multiprocessing.Manager()` you get this exception: > python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 2

[issue37297] function changed when pickle bound method object

2019-06-17 Thread Géry
Change by Géry : -- nosy: +asvetlov, christian.heimes, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37297] function changed when pickle bound method object

2019-06-16 Thread George Xie
Change by George Xie : -- keywords: +patch Added file: https://bugs.python.org/file48424/0001-fix-bound-method-__reduce__-bug.patch ___ Python tracker ___

[issue37297] function changed when pickle bound method object

2019-06-16 Thread Géry
Géry added the comment: As you stated on Stackoverflow, the fact that the function `A.f` becomes the function `B.f` after a pickling-unpickling sequence creates an infinite recursive call of `B.f` in worker processes started with `multiprocessing.pool.Pool().apply(super().f)` or `concurrent.

[issue37297] function changed when pickle bound method object

2019-06-16 Thread Géry
Change by Géry : -- nosy: +brett.cannon, pitrou, rhettinger, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue37297] function changed when pickle bound method object

2019-06-16 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue37297] function changed when pickle bound method object

2019-06-15 Thread George Xie
New submission from George Xie : if we create a bound method object `f` with function object `A.f` and instance object `B()`, when pickling this bound method object: import pickle class A(): def f(self): pass class B(): def f(se