A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068514.html below:

[Python-Dev] Adding an rslice() builtin?

[Python-Dev] Adding an rslice() builtin? [Python-Dev] Adding an rslice() builtin?Greg Ewing greg.ewing at canterbury.ac.nz
Tue Aug 29 11:37:47 CEST 2006
Nick Coghlan wrote:

>    reversed(seq[start:stop:step]) becomes seq[(stop-1)%abs(step):start-1:-step]
> 
> An rslice builtin would make the latter version significantly easier to read:
> 
>    seq[rslice(start, stop, step)]

How would this deal with omitted start and/or stop values?

--
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4