[Python-Dev] very slow compare of recursive objects

Neal Norwitz neal@metaslash.com
2003年1月19日 11:14:16 -0500


Could someone take a look at the patch attached to this bug report?
 http://python.org/sf/625698
It fixes a problem comparing recursive objects by adding a check in
PyObject_RichCompare. Seems to work fine for the specific problem,
however, it still doesn't help this case:
 a = []
 b = []
 for i in range(2): a.append(a)
 for i in range(2): b.append(b)
 print a == b
Thanks,
Neal

AltStyle によって変換されたページ (->オリジナル) /