Eric V. Smith <e...@trueblade.com> added the comment:
You said: """ b''.split(',') # gives strange error message. TypeError: a bytes-like object is required, not 'str' """ It is not a strange error message. You passed in a str (the ','), and you should have passed in bytes. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45087> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com