[pypy-commit] pypy remove-list-smm-2: Kill W_AbstractListObject.

Manuel Jacob noreply at buildbot.pypy.org
Sun May 19 13:56:36 CEST 2013


Author: Manuel Jacob
Branch: remove-list-smm-2
Changeset: r64315:edb290673899
Date: 2013-05-18 13:44 +0200
http://bitbucket.org/pypy/pypy/changeset/edb290673899/

Log:	Kill W_AbstractListObject.

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
@@ -21,9 +21,6 @@
 UNROLL_CUTOFF = 5
 
 
-class W_AbstractListObject(W_Root):
-    __slots__ = ()
-
 def make_range_list(space, start, step, length):
     if length <= 0:
         strategy = space.fromcache(EmptyListStrategy)
@@ -129,7 +126,7 @@
     return jit.loop_unrolling_heuristic(w_list1, w_list1.length(), UNROLL_CUTOFF) or \
            jit.loop_unrolling_heuristic(w_list2, w_list2.length(), UNROLL_CUTOFF)
 
-class W_ListObject(W_AbstractListObject):
+class W_ListObject(W_Root):
     def __init__(w_self, space, wrappeditems, sizehint=-1):
         assert isinstance(wrappeditems, list)
         w_self.space = space


More information about the pypy-commit mailing list