Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56150:83240dd2b311
Date: 2012-07-18 15:27 +0200
http://bitbucket.org/pypy/pypy/changeset/83240dd2b311/

Log:    another one

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
@@ -762,6 +762,8 @@
             storage = self.erase(sublist)
             return W_ListObject.from_storage_and_strategy(self.space, storage, 
self)
         else:
+            if length < 0:
+                length = 0
             subitems_w = [self._none_value] * length
             l = self.unerase(w_list.lstorage)
             for i in range(length):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to