On 12 November 2016 at 20:27, David Mertz <me...@gnosis.cx> wrote: > I thought of the use of `.__getitem__()` in metaclasses in the typing > module. I feel like this use is more natural and more useful than that. > Should we someday need a slice generic type for PEP 484, the spelling would > naturally be `Slice[T]` instead, in my mind. But `slice[1:10,2]` should be > a constructor for a concrete slice object. >
Slice[T] vs slice[::-1] is coherent with what we have now for List[T] vs list, etc. -- Ivan
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/