Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32034> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com