slicings: 3 questions

Alan G Isaac alan.isaac at gmail.com
Thu Jan 29 19:36:57 EST 2009


On 1/29/2009 4:41 PM Robert Kern apparently wrote:
> It allows (ab)uses like numpy.mgrid:
> 
>  >>> mgrid[0:10:11j]
> array([  0.,   1.,   2.,   3.,   4.,   5.,   6.,   7.,   8.,   9.,  10.])


Ah of course.
Obvious now, but I had presumed some deeper magic in
that syntax, not recognizing that a legitimate slice object
was being created.

Thanks!
Alan




More information about the Python-list mailing list