
May 28, 2009
5:27 p.m.
kirby urner wrote:
... Hey, did you know Ellipsis is a new primitive object in Python 3, denoted ... ?
... Ellipsis
Actually, it has been around for quite a while. Try this in even a much older Python: >>> class Funny(object): def __getitem__(self, *args): return args >>> Funny[1, ..., 10] (1, Ellipsis, 3) >>> Ellipsis Ellipsis --Scott David Daniels Scott.Daniels@Acm.Org