[pypy-commit] pypy list-strategies: It would be clever to return the clone

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


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


More information about the pypy-commit mailing list