From: Stefan Behnel Date: Thu, 11 Nov 2010 12:46:04 +0000 (+0100) Subject: comment X-Git-Tag: 0.14.alpha0~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3cb7aa56302f3c9624cc3774c59ce671db6c142;p=cython.git comment --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 4a103af4..f0a68bb8 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6325,7 +6325,7 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int """, impl=""" static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { - if (s1 == s2) { /* as done by PyObject_RichCompareBool() */ + if (s1 == s2) { /* as done by PyObject_RichCompareBool(); also catches the (interned) empty string */ return (equals == Py_EQ); } else if (PyUnicode_CheckExact(s1) & PyUnicode_CheckExact(s2)) { if (PyUnicode_GET_SIZE(s1) != PyUnicode_GET_SIZE(s2)) {