[pypy-commit] pypy set-strategies: optimization fix
l.diekmann
noreply at buildbot.pypy.org
Tue Jan 10 17:25:33 CET 2012
Author: Lukas Diekmann <lukas.diekmann at 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):
More information about the pypy-commit
mailing list