Martin Panter added the comment: More up-to-date information about the differences might be <https://docs.python.org/3/howto/pyporting.html#text-versus-binary-data>. If you want code that works in both versions, I find it simpler to use slicing: c[1:2] == b'b'.
---------- nosy: +martin.panter _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25620> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com