[pypy-commit] pypy virtual-arguments: another one

fijal noreply at buildbot.pypy.org
Wed Jul 18 15:27:34 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
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):


More information about the pypy-commit mailing list