This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients corona10, eamanu, terry.reedy
Date 2020-09-12.01:18:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599873517.24.0.329877720479.issue41749@roundup.psfhosted.org>
In-reply-to
Content
The opening message confused me by using 'need' as 'currently required to call' rather than 'required to compute (test) and necessarily needed to call'; but after reading the code, I believe I understand and modified title to match.  More simply, one could call what(h=b'...') after the change instead of what(None, b'...').  This is the change in the tests (but the old form must still be tested also).

I don't see how the change would affect correct legacy use.  (The TypeError to ValueError change is wrong, and I don't understand the other exception change.)  However, what('') should get the same error as currently (see additional change in review).

However, what is very problemmatic is requiring 1 of 2 different arguments.  For range, the first parameter is really 'start_or_stop', an int either way, with the interpretation depending on the presence of a second.  This is a nuisance for understanding, but a convenience in usage.  But I think requiring an argument (usually) passed positionally or an argument that now has to be passed by keyword, with an arbitrary letter name, is worse and less justified.  So my current view is that this change should be rejected.
History
Date User Action Args
2020-09-12 01:18:37terry.reedysetrecipients: + terry.reedy, eamanu, corona10
2020-09-12 01:18:37terry.reedysetmessageid: <1599873517.24.0.329877720479.issue41749@roundup.psfhosted.org>
2020-09-12 01:18:37terry.reedylinkissue41749 messages
2020-09-12 01:18:36terry.reedycreate