[Python-ideas] slice.literal notation
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
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas