Author: Maciej Fijalkowski <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit