Author: Lukas Diekmann <[email protected]>
Branch: list-strategies
Changeset: r47486:fd011d8f9e6d
Date: 2011-03-23 09:53 +0100
http://bitbucket.org/pypy/pypy/changeset/fd011d8f9e6d/
Log: copy_into method needed for ALL ListStrategies
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
@@ -145,6 +145,9 @@
def init_from_list_w(self, w_list, list_w):
raise NotImplementedError
+ def copy_into(self, w_list, w_other):
+ raise NotImplementedError
+
def length(self, w_list):
raise NotImplementedError
@@ -197,6 +200,9 @@
cast_to_void_star = staticmethod(cast_to_void_star)
cast_from_void_star = staticmethod(cast_from_void_star)
+ def copy_into(self, w_list, w_other):
+ pass
+
def length(self, w_list):
return 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit