A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/007730.html below:

[Python-Dev] Negative slice steps considered unhealthy (extended slicing for lists)

[Python-Dev] Negative slice steps considered unhealthy (extended slicing for lists) [Python-Dev] Negative slice steps considered unhealthy (extended slicing for lists)Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Tue, 1 Aug 2000 08:20:01 +0200
greg wrote:

> I think there are some big conceptual problems with allowing
> negative steps in a slice.

wasn't "slices" supposed to work the same way as "ranges"?

from PEP-204:

    "Extended slices do show, however, that there is already a
    perfectly valid and applicable syntax to denote ranges in a way
    that solve all of the earlier stated disadvantages of the use of
    the range() function"

> In the face of such confusion, the only Pythonic thing would
> seem to be to disallow these things.

...and kill PEP-204 at the same time.

</F>




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