[SciPy-user] array indexing

Agustin Lobo alobo at ija.csic.es
Fri Jan 24 10:39:01 EST 2003


Why is this?

>>> t
array([0, 1, 2, 3])
>>> t[0:2]
array([0, 1])

Why is not
array([0,1,2]) ? Am I not asking
for positions 0,1 and 2 in t ?

Thanks

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es






More information about the SciPy-User mailing list