Thomas Lee added the comment:
Revised patch - originally misinterpreted what was required here.
bytes() == str() now returns False, bytes() != str() now returns True.
--
title: PEP 3137 patch: make PyBytes/PyUnicode ==/!= comparisons return False -
PEP 3137 patch: PyBytes/PyUnicode
Changes by Guido van Rossum:
--
assignee: - gvanrossum
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1249
__
___
Python-bugs-list mailing list
Guido van Rossum added the comment:
Thanks!
This patch looks fine, except the PyClear() call is unnecessary. I
suppose you copied it from the similar return clauses further down, but
there they clear an exception set by the _getbuffer() call. But just
calling PyObject_IsInstance() cannot set