[issue34215] streams.py:IncompleteReadError is message is unclear when expected is None

2019-05-17 Thread Tyler Bell


Tyler Bell  added the comment:

I've updated my PR to reflect a better message for the IncompleteReadError 
exception. When expected is None, the error reads, "IncompleteReadError: 1 
bytes read on a total of None expected bytes" which is confusing. My PR changes 
this to "IncompleteReadError: 1 bytes read on a total of unknown expected 
bytes". Otherwise, it is required that whoever views the exception 
text(possibly through layers of abstraction), to know that None(a "low level" 
programmers decision) is equal to unknown.

--
nosy: +Tyler Bell
title: streams.py:readuntil IncompleteReadError is message is incorrect -> 
streams.py:IncompleteReadError is message is unclear when expected is None

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:readuntil IncompleteReadError is message is incorrect

2018-07-24 Thread Tyler Bell


New submission from Tyler Bell :

This may have already been cleared as I opened the PR months ago
But the gist is that the Exception is misleading and the test is incorrect.

--
components: Library (Lib)
messages: 322329
nosy: mrbell...@gmail.com
priority: normal
pull_requests: 7975
severity: normal
status: open
title: streams.py:readuntil IncompleteReadError is message is incorrect
type: enhancement
versions: Python 3.5

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com