[pypy-commit] pypy kill-single-impl-multimethods: Remove the now empty bytearray object.

alex_gaynor noreply at buildbot.pypy.org
Sat Aug 6 01:33:36 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: kill-single-impl-multimethods
Changeset: r46298:4507df3b1bc3
Date: 2011-08-05 16:35 -0700
http://bitbucket.org/pypy/pypy/changeset/4507df3b1bc3/

Log:	Remove the now empty bytearray object.

diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py
deleted file mode 100644
--- a/pypy/objspace/std/bytearrayobject.py
+++ /dev/null
@@ -1,24 +0,0 @@
-
-def eq__Bytearray_Unicode(space, w_bytearray, w_other):
-    return space.w_False
-
-def eq__Unicode_Bytearray(space, w_other, w_bytearray):
-    return space.w_False
-
-def ne__Bytearray_Unicode(space, w_bytearray, w_other):
-    return space.w_True
-
-def ne__Unicode_Bytearray(space, w_other, w_bytearray):
-    return space.w_True
-
-def lt__Bytearray_Bytearray(space, w_bytearray1, w_bytearray2):
-    data1 = w_bytearray1.data
-    data2 = w_bytearray2.data
-    ncmp = _min(len(data1), len(data2))
-    # Search for the first index where items are different
-    for p in range(ncmp):
-        if data1[p] != data2[p]:
-            return space.newbool(data1[p] < data2[p])
-    # No more items to compare -- compare sizes
-    return space.newbool(len(data1) < len(data2))
-


More information about the pypy-commit mailing list