[Python-ideas] slice.literal notation

Joseph Jevnik joejev at gmail.com
Wed Jun 10 18:10:47 CEST 2015


I considered `slice[...]` however, this will change some existing
behaviour. This would mean we need to put a metaclass on slice, and then
`type(slice) is type` would no longer be true. Also, with 3.5's typing
work, we are overloading the meaning of indexing a type object. Adding the
slice.literal does not break anything or conflict with any syntax.

On Wed, Jun 10, 2015 at 12:03 PM, <random832 at fastmail.us> wrote:

> On Wed, Jun 10, 2015, at 11:33, Joseph Jevnik wrote:
> > ...
>
> What about slice[...]?
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150610/d09f048d/attachment-0001.html>


More information about the Python-ideas mailing list