[Numpy-discussion] Question about indexing

Alan G Isaac aisaac@american....
Thu May 29 20:32:57 CDT 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],:]``?

Alan Isaac

More information about the Numpy-discussion mailing list