Author: Brian Kearns <[email protected]>
Branch:
Changeset: r74061:6552f2cd3784
Date: 2014-10-21 21:24 -0700
http://bitbucket.org/pypy/pypy/changeset/6552f2cd3784/
Log: fix scalar swapaxes/transpose
diff --git a/pypy/module/micronumpy/boxes.py b/pypy/module/micronumpy/boxes.py
--- a/pypy/module/micronumpy/boxes.py
+++ b/pypy/module/micronumpy/boxes.py
@@ -171,7 +171,7 @@
except OperationError:
raise oefmt(space.w_TypeError, "an integer is required")
raise oefmt(space.w_ValueError, "axes don't match array")
- return self.item(space)
+ return self
def descr_getitem(self, space, w_item):
from pypy.module.micronumpy.base import convert_to_array
@@ -425,7 +425,7 @@
@unwrap_spec(axis1=int, axis2=int)
def descr_swapaxes(self, space, axis1, axis2):
- return self.item(space)
+ return self
def descr_fill(self, space, w_value):
self.get_dtype(space).coerce(space, w_value)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit