Author: Ronan Lamy <[email protected]>
Branch: object-dtype2
Changeset: r76800:9c75809161df
Date: 2015-04-15 23:56 +0100
http://bitbucket.org/pypy/pypy/changeset/9c75809161df/
Log: Add ObjectType.byteswap() (fixes a translation failure)
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1655,6 +1655,9 @@
def read(self, arr, i, offset, dtype=None):
return self.box(self._read(arr.storage, i, offset))
+ def byteswap(self, w_v):
+ return w_v
+
@jit.dont_look_inside
def _write(self, storage, i, offset, w_obj, gcstruct):
# no GC anywhere in this function!
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit