Author: Lukas Diekmann <[email protected]>
Branch: list-strategies
Changeset: r47450:4c5fbb6e58e6
Date: 2011-03-02 14:48 +0100
http://bitbucket.org/pypy/pypy/changeset/4c5fbb6e58e6/
Log: Use RangeListStrategy instead of RangeListObject
diff --git a/pypy/module/__builtin__/functional.py
b/pypy/module/__builtin__/functional.py
--- a/pypy/module/__builtin__/functional.py
+++ b/pypy/module/__builtin__/functional.py
@@ -97,10 +97,12 @@
return space.newlist(res_w)
-def range_withspecialized_implementation(space, start, step, howmany):
+def range_withspecialized_implementation(space, start, step, length):
assert space.config.objspace.std.withrangelist
- from pypy.objspace.std.rangeobject import W_RangeListObject
- return W_RangeListObject(start, step, howmany)
+ from pypy.objspace.std.listobject import make_range_list
+ return make_range_list(space, start, step, length)
+ #from pypy.objspace.std.rangeobject import W_RangeListObject
+ #return W_RangeListObject(start, step, length)
bigint_one = rbigint.fromint(1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit