From: <zy...@us...> - 2009-04-10 03:49:09
|
Revision: 6199 http://jython.svn.sourceforge.net/jython/?rev=6199&view=rev Author: zyasoft Date: 2009-04-10 03:49:01 +0000 (Fri, 10 Apr 2009) Log Message: ----------- Added back logic for PyList.equals(List) Modified Paths: -------------- branches/newlist/src/org/python/core/PyList.java Modified: branches/newlist/src/org/python/core/PyList.java =================================================================== --- branches/newlist/src/org/python/core/PyList.java 2009-04-10 03:32:30 UTC (rev 6198) +++ branches/newlist/src/org/python/core/PyList.java 2009-04-10 03:49:01 UTC (rev 6199) @@ -775,6 +775,8 @@ public boolean equals(Object o) { if (o instanceof PyList) { return (((PyList) o).list.equals(list)); + } else if(o instanceof List) { // XXX copied from PyList, but... + return o.equals(this); // XXX shouldn't this compare using py2java? } return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |