[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

Serhiy Storchaka report at bugs.python.org
Thu Jun 9 15:08:42 EDT 2016


Serhiy Storchaka added the comment:

This looks reasonable.

But since Fault never was unpickleable, this issue is in gray zone between bug fixing and adding new feature. The latter can be done only in new Python version. I hesitate with classification of this issue.

There are a lot of other exceptions that can't be unpickled (including xmlrpc.client.ProtocolError). This may be a part of larger issue.

As for the patch itself, it solves the issue. But faultCode and faultString are saved twice (this is not a large problem for multiprocessing). Test should test pickling with all possible protocols (see how other pickle tests are written).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27281>
_______________________________________


More information about the Python-bugs-list mailing list