[Python-3000] Ellipsis

Charles Merriam charles.merriam at gmail.com
Thu Jan 24 21:12:34 CET 2008


OK, I'll admit this is confusing to me.

Is "..." == pass?

So, does a line with tokens after the "..." get an error like
"characters after an elipses (...).  Did you cut and paste from IDLE?"


On Jan 24, 2008 12:04 PM, Raymond Hettinger <python at rcn.com> wrote:
> > Some folks thought it would be cute to be able to
> > write incomplete code like this:
> >
> > class C:
> >   def meth(self): ...
> >   ...
> >
> > and have it be syntactically correct.
>
> Hmm, that *is* cute :-)
>
> Raymond
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/charles.merriam%40gmail.com
>


More information about the Python-3000 mailing list