[PYTHON MATRIX-SIG] slicing rank-1 arrays
James Hugunin
jjh@Goldilocks.LCS.MIT.EDU
Mon, 5 Feb 96 11:13:43 EST
From: da@maigret.cog.brown.edu (David Ascher)
Given the following, which seems fine:
>>> a
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
>>> a[All,All]
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
why doesn't the following work?
>>> b
0 1 2 3 4
>>> b[All]
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: __len__
>>> b[Reverse]
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: __len__
[Using 0.33 on an SGI]
This is a bug. I'll fix it.
-Jim
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================