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 eric.smith, remi.lapeyre, serhiy.storchaka, sidhant, skip.montanaro, steven.daprano
Date 2020-05-27.09:15:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590570912.93.0.64132542841.issue40762@roundup.psfhosted.org>
In-reply-to
Content
> Short of outright banning the use of bytes (raise a TypeError), I think
> the current behaviour is least-worst.

I agree.

I'd like to see the TypeError raised for everything that's not a string or number (since the docs say that's what's accepted), but at this point that would be big change. Maybe we could add a parameter to __init__ to turn on that behavior.
History
Date User Action Args
2020-05-27 09:15:12eric.smithsetrecipients: + eric.smith, skip.montanaro, steven.daprano, serhiy.storchaka, remi.lapeyre, sidhant
2020-05-27 09:15:12eric.smithsetmessageid: <1590570912.93.0.64132542841.issue40762@roundup.psfhosted.org>
2020-05-27 09:15:12eric.smithlinkissue40762 messages
2020-05-27 09:15:12eric.smithcreate