Author: Squeaky <[email protected]>
Branch: simple-range-strategy
Changeset: r69677:8d186d3ee7de
Date: 2014-03-04 14:08 +0100
http://bitbucket.org/pypy/pypy/changeset/8d186d3ee7de/
Log: oops
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
@@ -1126,7 +1126,8 @@
return 1
def _getitem_unwrapped(self, w_list, i):
- length = self.unerase(w_list.lstorage)
+ length = self.unerase(w_list.lstorage)[0]
+ assert length > 0
if 0 <= i < length:
return i
else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit