[Numpy-discussion] Question about indexing

Alan G Isaac aisaac at american.edu
Thu May 29 21:32:57 EDT 2008


On Thu, 29 May 2008, Keith Goodman apparently wrote:
> >>> a[[0,1]] 
> That one looks odd. But it is just shorthand for:
> >>> a[[0,1],:] 


Do you mean that ``a[[0,1],:]`` is a more primitive 
expression than ``a[[0,1]]``?  In what sense, and does it 
ever matter?

Is ``a[[0,1]]`` completely equivalent to ``a[[0,1],...]`` 
and ``a[[0,1],:]``?

Thanks,
Alan Isaac






More information about the NumPy-Discussion mailing list