Message244821
> 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. |
|
Date |
User |
Action |
Args |
2015-06-04 13:32:33 | llllllllll | set | recipients:
+ llllllllll, rhettinger, mark.dickinson, Arfrever, steven.daprano, serhiy.storchaka |
2015-06-04 13:32:33 | llllllllll | set | messageid: <1433424753.73.0.300647009519.issue24379@psf.upfronthosting.co.za> |
2015-06-04 13:32:33 | llllllllll | link | issue24379 messages |
2015-06-04 13:32:33 | llllllllll | create | |
|