!wtf ellipsis

AdSR artur_spruce at yahoo.com
Sat Aug 14 22:35:06 CEST 2004

Christos "TZOTZIOY" Georgiou <tzot at sil-tec.gr> wrote in message news:<voiqh0p0ce6ui77498vqdabcrl7asro33i at 4ax.com>...
> On Fri, 13 Aug 2004 14:54:24 +0200, rumours say that Jonas Kölker
> <jonaskoelker at yahoo.com> might have written:
> >what (the hell) is Ellipsis?
> >what's it good for?
> Peter provided a link answering your questions.  As a side note, I have
> used Ellipsis instead of None as a very handy last item put in queues in
> threaded programs (after all, "ellipsis" means "absence" or "lack" in
> English :)  Thus I avoid creating dummy classes to mark the end of
> data...

It's funny, I always understood ellipsis ('...') as a kind of a
wildcard or abbreviation mark, rather than absence mark. For example,
you'd write:

a[1], a[2], ..., a[N]

which means "all values from a[1] to a[N]" or something like that.

But then of course it's just a symbol...


More information about the Python-list mailing list