[pypy-commit] pypy speedup-list-comprehension: maybe fix translation

fijal noreply at buildbot.pypy.org
Sun Feb 26 18:48:00 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: speedup-list-comprehension
Changeset: r52914:7b5761103d00
Date: 2012-02-26 09:47 -0800
http://bitbucket.org/pypy/pypy/changeset/7b5761103d00/

Log:	maybe fix translation

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
@@ -33,7 +33,7 @@
     return W_ListObject.from_storage_and_strategy(space, storage, strategy)
 
 @jit.look_inside_iff(lambda space, list_w: jit.isconstant(len(list_w)) and len(list_w) < UNROLL_CUTOFF)
-def get_strategy_from_list_objects(space, list_w, sizehint):
+def get_strategy_from_list_objects(space, list_w, sizehint=-1):
     if not list_w:
         if sizehint != -1:
             return SizeListStrategy(space, sizehint)


More information about the pypy-commit mailing list