[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

Serhiy Storchaka report at bugs.python.org
Fri Mar 27 18:43:09 CET 2015


Serhiy Storchaka added the comment:

I doubt that this issue is worth fixing. It is common that when error is happen inside complex operation, the output can be incomplete. When you pickle a list containing non-pickleable data, resulting file content will be not unpickleable. When you write a number of lines in text file, and one of lines contains non-encodable characters, resulting file content will be incomplete and may even don't contain complete lines.

And when other xdrlib.Packer methods that write complex data (pack_uhyper, pack_list, pack_farray, pack_array) fail, they left incomplete output.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list