[pypy-commit] pypy list-strategies: RPython wasn't satiesfied before
l.diekmann
noreply at buildbot.pypy.org
Fri Sep 23 13:13:15 CEST 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: list-strategies
Changeset: r47501:205bca6bc815
Date: 2011-04-21 12:02 +0200
http://bitbucket.org/pypy/pypy/changeset/205bca6bc815/
Log: RPython wasn't satiesfied before
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
@@ -186,7 +186,7 @@
raise NotImplementedError
def getstorage_copy(self, w_list):
- return self.cast_to_void_star(self.getitems_copy(w_list))
+ raise NotImplementedError
def append(self, w_list, w_item):
raise NotImplementedError
@@ -253,6 +253,9 @@
def getitems_copy(self, w_list):
return []
+ def getstorage_copy(self, w_list):
+ return self.cast_to_void_star(self.getitems_copy(w_list))
+
def append(self, w_list, w_item):
w_list.__init__(self.space, [w_item])
@@ -340,6 +343,9 @@
def getitems(self, w_list):
return self._getitems_range(w_list, True)
+ def getstorage_copy(self, w_list):
+ return self.cast_to_void_star(self.getitems_copy(w_list))
+
getitems_copy = getitems
@specialize.arg(2)
@@ -504,6 +510,9 @@
def getitems_copy(self, w_list):
return [self.wrap(item) for item in self.cast_from_void_star(w_list.lstorage)]
+ def getstorage_copy(self, w_list):
+ return self.cast_to_void_star(self.getitems_copy(w_list))
+
getitems = getitems_copy
def getslice(self, w_list, start, stop, step, length):
More information about the pypy-commit
mailing list