Ellipsis — omitted-dimension singleton
Ellipsis and the literal ... normally designate the same singleton. A subscription can pass the singleton to an object as a key, including as an element of a tuple with other indices. Libraries may interpret it as omitted dimensions; that meaning comes from the receiving implementation, not a universal Python slicing rule. Built-in lists do not accept it as an index. An ellipsis expression can serve as a placeholder in a function body but does not cause the function to return Ellipsis unless explicitly returned. Ellipsis is a built-in name that can be shadowed; the literal ... retains its meaning. CPython 3.13 can also warn at compilation when an invalid literal list subscription is recognizable.
Formal Syntax & Structure
Ellipsis...Return Value
The singleton represented by the ellipsis literal.
Working Example
class Grid: def __getitem__(self, key): return key
selection = Grid()[..., 2]print(selection)print(selection[0] is Ellipsis)print(type(Ellipsis).__name__)