Author: mattip
Branch: matrixmath-dot
Changeset: r50844:d1038ba54b76
Date: 2011-12-24 22:38 +0200
http://bitbucket.org/pypy/pypy/changeset/d1038ba54b76/
Log: clean up to_str a tiny bit (2)
diff --git a/pypy/module/micronumpy/interp_numarray.py
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -921,9 +921,7 @@
builder.append('\n' + indent)
else:
builder.append(indent)
- # create_slice requires len(chunks) > 1 in order to reduce
- # shape
- view = self.create_slice([(i, 0, 0, 1), (0, self.shape[1],
1, self.shape[1])]).get_concrete()
+ view = self.create_slice([(i, 0, 0, 1)]).get_concrete()
view.to_str(space, comma, builder, indent=indent + ' ',
use_ellipsis=use_ellipsis)
builder.append('\n' + indent + '..., ')
i = self.shape[0] - 3
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit