Author: Lukas Diekmann <lukas.diekm...@uni-duesseldorf.de> Branch: set-strategies Changeset: r51211:498b6ee337e9 Date: 2012-01-10 17:22 +0100 http://bitbucket.org/pypy/pypy/changeset/498b6ee337e9/
Log: optimization fix diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py --- a/pypy/objspace/std/listobject.py +++ b/pypy/objspace/std/listobject.py @@ -691,6 +691,7 @@ for i in l: if i == obj: return True + return False return ListStrategy.contains(self, w_list, w_obj) def length(self, w_list): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit