[Numpy-discussion] How is NumPy implemented?

Fernando Perez fperez.net@gmail....
Thu Jun 28 15:33:21 CDT 2007


On 6/28/07, Geoffrey Zhu <gzhu@peak6.com> wrote:
> Hi All,
>
> I am curious how numpy is implemented. Syntax such as x[10::-2] is
> completely foreign to Python. How does numpy get Python to support it?

Completely foreign to Python?

In [1]: x="Geoffrey Zhu"

In [2]: x[10::-2]
Out[2]: 'h efoG'


Extended slicing has been part of the language for many years now.

Cheers,

f


More information about the Numpy-discussion mailing list