Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49159:39f1615703a2
Date: 2011-05-17 13:40 +0200
http://bitbucket.org/pypy/pypy/changeset/39f1615703a2/
Log: fixed bug in determination of strategy
diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -658,7 +658,7 @@
for item_w in w_iterable:
if type(item_w) is not W_IntObject:
break;
- if item_w is w_iterable[:-1]:
+ if item_w is w_iterable[-1]:
w_set.strategy = space.fromcache(IntegerSetStrategy)
w_set.sstorage = w_set.strategy.get_storage_from_list(w_iterable)
return
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit