Terry Reedy wrote:
So it would be MUCH more useful if that notation created a range object.

for i in [1:n]: ...

So I would oppose the slice proposal in favor of a range proposal.

Another possibility would be to unify range and slice
objects so that they're actually the same thing. Then
the same notation could be used for both purposes.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to