[pypy-commit] pypy length-hint: restore iadd__List_List, it's still needed to override add__List_List

pjenvey noreply at buildbot.pypy.org
Wed Oct 3 01:11:39 CEST 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: length-hint
Changeset: r57755:3eea894217c9
Date: 2012-10-02 16:11 -0700
http://bitbucket.org/pypy/pypy/changeset/3eea894217c9/

Log:	restore iadd__List_List, it's still needed to override
	add__List_List

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
@@ -1189,6 +1189,10 @@
         raise
     return w_list1
 
+def inplace_add__List_List(space, w_list1, w_list2):
+    list_extend__List_ANY(space, w_list1, w_list2)
+    return w_list1
+
 def mul_list_times(space, w_list, w_times):
     try:
         times = space.getindex_w(w_times, space.w_OverflowError)


More information about the pypy-commit mailing list