[Python-ideas] slice.literal notation

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 11 00:29:01 CEST 2015


David Mertz wrote:

> This
>     patch proposes the following change:
> 
>         slice.literal

It would be even nicer if the slice class itself
implemented the [] syntax:

    myslice = slice[1:2]

-- 
Greg


More information about the Python-ideas mailing list