Message3150

Author tristan
Recipients tristan, tristanlk
Date 2008-04-13.02:32:42
SpamBayes Score 0.05429019
Marked as misclassified No
Message-id <1208053963.17.0.136602810293.issue1889394@psf.upfronthosting.co.za>
In-reply-to
Content
There is also a problem with !=
here is an additional patch to fix it

--- a/jython/src/org/python/core/PyObject.java
+++ b/jython/src/org/python/core/PyObject.java
@@ -1264,6 +1264,11 @@ public class PyObject implements Serializable {
             if (res != null)
                 return res;
             return _cmpeq_unsafe(o) != 0 ? Py.True : Py.False;
+       } catch (PyException e) {
+            if (Py.matchException(e, Py.TypeError)) {
+                return Py.False;
+            }
+            throw e;
         } finally {
             delete_token(ts, token);
             ts.compareStateNesting--;
History
Date User Action Args
2008-04-13 02:32:43tristansetspambayes_score: 0.0542902 -> 0.05429019
recipients: + tristan, tristanlk
2008-04-13 02:32:43tristansetspambayes_score: 0.0542902 -> 0.0542902
messageid: <1208053963.17.0.136602810293.issue1889394@psf.upfronthosting.co.za>
2008-04-13 02:32:43tristanlinkissue1889394 messages
2008-04-13 02:32:42tristancreate