More random python observations from a perl programmer

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Thu Aug 19 14:56:57 EDT 1999


    MH> At some point Python will probably support `extended slice
    MH> syntax' like so:

    MH> range(0,10)[1:4:2] => [1,3]

    MH> Numerical Python already does this.

As does JPython:

JPython 1.0.3 on java1.2
Copyright 1997-1998 Corporation for National Research Initiatives
>>> range(0,10)[1:4:2]
[1, 3]

Not surprising given the author of NumPy and JPython :)

-Barry




More information about the Python-list mailing list