[pypy-commit] pypy kill-single-impl-multimethods: Obscure hack that's needed.

alex_gaynor noreply at buildbot.pypy.org
Sat Aug 6 05:07:58 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: kill-single-impl-multimethods
Changeset: r46303:096c49f6a237
Date: 2011-08-05 20:09 -0700
http://bitbucket.org/pypy/pypy/changeset/096c49f6a237/

Log:	Obscure hack that's needed.

diff --git a/pypy/objspace/std/bytearraytype.py b/pypy/objspace/std/bytearraytype.py
--- a/pypy/objspace/std/bytearraytype.py
+++ b/pypy/objspace/std/bytearraytype.py
@@ -425,6 +425,10 @@
     w_bytearray1.data += space.bufferstr_new_w(w_iterable2)
     return w_bytearray1
 
+def inplace_add__Bytearray_Bytearray(space, w_bytearray1, w_bytearray2):
+    w_bytearray1.data += w_bytearray2.data
+    return w_bytearray1
+
 def mul_bytearray_times(space, w_bytearray, w_times):
     try:
         times = space.getindex_w(w_times, space.w_OverflowError)


More information about the pypy-commit mailing list