Author: Lukas Diekmann <[email protected]>
Branch: list-strategies
Changeset: r47504:cb99ab592ac6
Date: 2011-04-26 10:34 +0200
http://bitbucket.org/pypy/pypy/changeset/cb99ab592ac6/
Log: It would be clever to return the clone
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
@@ -316,6 +316,7 @@
def clone(self, w_list):
storage = w_list.lstorage # lstorage is tuple, no need to clone
w_clone = W_ListObject.from_storage_and_strategy(self.space, storage,
self)
+ return w_clone
def copy_into(self, w_list, w_other):
w_other.strategy = self
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit