Author: Maciej Fijalkowski <[email protected]>
Branch: speedup-list-comprehension
Changeset: r52810:de49996d2864
Date: 2012-02-23 08:40 -0700
http://bitbucket.org/pypy/pypy/changeset/de49996d2864/

Log:    oops, a missing case

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
@@ -663,6 +663,8 @@
         w_list.lstorage = self.erase(l)
 
     def get_empty_storage(self, sizehint):
+        if sizehint == -1:
+            return self.erase([])
         return self.erase(newlist(sizehint))
 
     def clone(self, w_list):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to