[issue32431] Two bytes objects of zero length don't compare equal
R. David Murray
report at bugs.python.org
Wed Dec 27 10:22:00 EST 2017
R. David Murray <rdmurray at bitdance.com> added the comment:
My suspicion is that this behavior/code is left over from when the code was handling strings in python2, where strings were always null terminated and so the equal-bytes test would always pass. I don't think this is appropriate for bytes objects, so I think the compare logic should be fixed. But I don't deal with the C code much, so I'd like an opinion from a core dev who does.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32431>
_______________________________________
More information about the Python-bugs-list
mailing list