[pypy-commit] pypy list-strategies: Use RangeListStrategy instead of RangeListObject

l.diekmann noreply at buildbot.pypy.org
Fri Sep 23 13:12:06 CEST 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
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)
 


More information about the pypy-commit mailing list