>>> __builtins__.

__doc__
"Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
`nil' object; Ellipsis represents `...' in slices."
>>> Ellipsis
Ellipsis
>>> type(Ellipsis)
<type 'ellipsis'>
>>> Ellipsis.__doc__
>>> def irange(start):
...
while True:
...
yield start
...
start += 1
...
>>> class Range:
...
def __getitem__(self, i):
...
if isinstance(i, tuple) and Ellipsis in i:
...
return irange(i[0])
...
else:
...
return range(i[0], i[1])
...
>>> Range = Range()
>>> Range[1,10]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> Range[1,...]
<generator object at 0x02724DC8>
>>> r = Range[1,...]
>>> r.next()
1
>>> r.next()
2
>>> r.next()
3
>>>