From: Frank W. <fwi...@us...> - 2005-06-27 16:47:57
|
Update of /cvsroot/jython/jython/org/python/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15876/org/python/core Modified Files: PyObject.java Log Message: For test_class.py: made __eq__ returns false for == rather than raising the exception when __eq__ raises AttributeError. Index: PyObject.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyObject.java,v retrieving revision 2.36 retrieving revision 2.37 diff -C2 -d -r2.36 -r2.37 *** PyObject.java 20 Jun 2005 17:12:14 -0000 2.36 --- PyObject.java 27 Jun 2005 16:47:37 -0000 2.37 *************** *** 1516,1519 **** --- 1516,1524 ---- return res; return _cmpeq_unsafe(o) == 0 ? Py.One : Py.Zero; + } catch (PyException e) { + if (Py.matchException(e, Py.AttributeError)) { + return Py.Zero; + } + throw e; } finally { delete_token(ts, token); |