[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 

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



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

2019-12-15 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
nosy: +asvetlov, yselivanov
stage:  -> patch review
versions: +Python 3.9 -Python 3.5

___
Python tracker 

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