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 eric.smith
Recipients asicscwcs, eric.smith, iritkatriel, orsenthil, serhiy.storchaka
Date 2021-07-02.11:54:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625226878.73.0.414771294763.issue44520@roundup.psfhosted.org>
In-reply-to
Content
I agree this should be closed (and I'm closing it). I don't see any reason why this function should do something other than raise TypeError if given bs=None. If you want that behavior, write a small wrapper function.

The "if not bs" check appears to be an optimization for the case of zero-length input. Hopefully the code would continue to work without that test (or instead testing for len(bs)==0), but in my opinion it's not worth the risk of removing or changing it.
History
Date User Action Args
2021-07-02 11:54:38eric.smithsetrecipients: + eric.smith, orsenthil, serhiy.storchaka, iritkatriel, asicscwcs
2021-07-02 11:54:38eric.smithsetmessageid: <1625226878.73.0.414771294763.issue44520@roundup.psfhosted.org>
2021-07-02 11:54:38eric.smithlinkissue44520 messages
2021-07-02 11:54:38eric.smithcreate