Seek support for new slice syntax PEP.
Gregory Ewing
greg.ewing at canterbury.ac.nz
Wed Dec 16 19:23:42 EST 2009
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
More information about the Python-list
mailing list