Author: Maciej Fijalkowski <[email protected]>
Branch: speedup-list-comprehension
Changeset: r52915:d38fdafbd462
Date: 2012-02-26 09:49 -0800
http://bitbucket.org/pypy/pypy/changeset/d38fdafbd462/
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
@@ -32,8 +32,8 @@
storage = strategy.erase(None)
return W_ListObject.from_storage_and_strategy(space, storage, strategy)
[email protected]_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=-1):
[email protected]_inside_iff(lambda space, list_w, sizehint:
jit.isconstant(len(list_w)) and len(list_w) < UNROLL_CUTOFF)
+def get_strategy_from_list_objects(space, list_w, sizehint):
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