I don’t understand the following part of the Python docs:
http://docs.python.org/reference/expressions.html#slicings
Is this referring to list slicing ( x=[1,2,3,4]; x[0:2] )..? Particularly the parts referring to ellipsis..
slice_item ::= expression | proper_slice | ellipsis
The conversion of a slice item that is an expression is that expression. The conversion of an ellipsis slice item is the built-in Ellipsis object.
Defining simple test class that just prints what is being passed:
Expression example:
Slice example:
Ellipsis example:
Tuple with ellipsis and slice: