Joe Jevnik added the comment:

> Why not index the slice type itself? slice[1:2]

I originally considered this and I personally really like this syntax, but I 
was concerned with ambiguity with the typing module

> The only question in my mind is what slice should do when given just a single 
> index

I think some of the power of this concept comes from the fact that I can 
express a complicated indexer without worrying about how it desugars. I would 
personally prefer being able to have this return tuples and scalars so that the 
syntax is easier to explain.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24379>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to