Alex Zaslavskis <[email protected]> added the comment:
''.split(',') # works as it should be
b''.split(',') # gives strange error message.
TypeError: a bytes-like object is required, not 'str'
The problem here is that message is saying that for fix error you should use
bytes-like object that not a true. In reality the string or None is required .
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com