Eric V. Smith <e...@trueblade.com> added the comment:

> 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.

----------
nosy: +eric.smith
type: enhancement -> behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40762>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to