[Python-ideas] More useful slices

Masklinn masklinn at masklinn.net
Sun Feb 1 18:45:57 CET 2015


On 2015-02-01, at 18:27 , Steven D'Aprano <steve at pearwood.info> wrote:
> It isn't meaningful to define a range with an unspecified stop

Wouldn't that just be an infinite sequence, equivalent to
`itertools.count`?

That's how it works in Haskell[0] and Clojure[1].

[0] using the range notation, or Enum's methods
[1] https://clojuredocs.org/clojure.core/range


More information about the Python-ideas mailing list