[pypy-svn] r11800 - pypy/dist/pypy/objspace

pedronis at codespeak.net pedronis at codespeak.net
Mon May 2 19:32:41 CEST 2005


Author: pedronis
Date: Mon May  2 19:32:41 2005
New Revision: 11800

Modified:
   pypy/dist/pypy/objspace/descroperation.py
Log:
changes to pass test_richcmp



Modified: pypy/dist/pypy/objspace/descroperation.py
==============================================================================
--- pypy/dist/pypy/objspace/descroperation.py	(original)
+++ pypy/dist/pypy/objspace/descroperation.py	Mon May  2 19:32:41 2005
@@ -307,7 +307,8 @@
         try:
             # Try to do some magic to compare cyclic constructs.
             if (_compare_nesting > space._NESTING_LIMIT and
-                (space.lookup(w_v, '__getitem__') is not None) and
+                # dont't be subtle the corresponding condition in CPython is always true for heaptypes                
+                # (space.lookup(w_v, '__getitem__') is not None) and
                 not (space.is_w(w_vt, space.w_str) or
                      space.is_w(w_vt, space.w_tuple))):
                 try:
@@ -490,7 +491,8 @@
         try:
             # Try to do some magic to compare cyclic constructs.
             if (_compare_nesting > space._NESTING_LIMIT and
-                (space.lookup(w_obj1, '__getitem__') is not None) and
+                # dont't be subtle the corresponding condition in CPython is always true for heaptypes
+                # (space.lookup(w_obj1, '__getitem__') is not None) and
                 not (space.is_w(w_typ1, space.w_str) or
                      space.is_w(w_typ1, space.w_tuple))):
                 i1 = space.int_w(space.id(w_obj1))



More information about the Pypy-commit mailing list