[PYTHON MATRIX-SIG] Indexing bug?

tim@lassi.ece.uiuc.edu tim@lassi.ece.uiuc.edu
Tue, 20 Aug 1996 18:09:22 -0500


I think this is a bug:

>>> a = arange(8)
>>> a
0 1 2 3 4 5 6 7
>>> a[::2]
0 2 4 6
>>> a[1::2]
1 3 5
>>> 

Shouldn't this return 1 3 5 7?



-- 
	-tim

+--------------------------------------------------------------------+
| Tim Hochberg               Ultrahigh Speed Digital Electronics Lab |
| tim@lassi.ece.uiuc.edu              University of Illinois         |
| http://dogbert.ece.uiuc.edu/~tim         (217) 333-6014            |
+--------------------------------------------------------------------+

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================