Ellipses in Python

Question

Use of Ellipses in Python.

Solution

class C(object):
    def __getitem__(self, item):
        return item

print C()[1:2, ..., 3]
Run this
Comments by Disqus