[issue32034] Error when unpickling IncompleteReadError
Serhiy Storchaka
report at bugs.python.org
Wed Nov 15 14:52:59 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
There is the same issue with LimitOverrunError.
I'm not sure that we should keep args the same. It affects __str__ and __repr__. badouxn overrides __str__. And the result of __repr__ currently looks like the exception constructor, but actually is not compatible with it.
>>> IncompleteReadError(b'abc', 10)
IncompleteReadError('3 bytes read on a total of 10 expected bytes',)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32034>
_______________________________________
More information about the Python-bugs-list
mailing list