On Dec 28, 2017 12:10, "Joao S. O. Bueno" <jsbueno@python.org.br> wrote:
This is probably too littleĀ  to justify the compatibility breakage, but is
there a motive for the "slice" type to be on built-ins ?
(besides people forgot it there at PEP-3000 time?)

It is normally used in super-specialized cases, mostly when one is
implementing a Sequence type, and even there just for type-checking,
not to create new slice objects.

It does get called sometimes in numerical code to construct complex indexing operations.

-n