extended slice

Fredrik Lundh fredrik at pythonware.com
Thu Jan 20 07:17:13 EST 2000


P.J.W.S. Vrijlandt <P.J.W.S.VRIJLANDT at INT.azg.nl> wrote:
> In the reference manual under slice I find hints of an extende slice 
> syntax. It goes like a[2:3:step], a[2:4, 6:8] or a[... , 2:4].
> 
> Indeed 'ellipsis' is a builtin and seems to denote ...
> 
> However, I can find no way of using extended slicing. Do we have this 
> feature?

it's used by the numerical python extension:
http://sourceforge.net/project/?group_id=1369

as of 1.5.2, no built-in sequence types (tuples, list,
arrays, strings) supports the extended syntax.  hope-
fully, that will change in future versions.

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
— see it live on the python conference! &smiley; -->





More information about the Python-list mailing list