[PYTHON MATRIX-SIG] Re: Indexing bug?

Jim Hugunin hugunin@mit.edu
Wed, 21 Aug 1996 12:09:29 -0400


tim@lassi.ece.uiuc.edu wrote:
> 
> 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?

Certainly should.  This got lost in the translation to the new built-in
slices that come with 1.4b2.  It's fixed in alpha3.

-Jim

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

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