What does the Ellipsis object do?

This came up in another question recently. I’ll elaborate on my answer from there: Ellipsis is an object that can appear in slice notation. For example: Its interpretation is purely up to whatever implements the __getitem__ function and sees Ellipsis objects there, but its main (and intended) use is in the numpy third-party library, which … Read more