[Python-3000] Ellipsis Literal
Guido van Rossum
guido at python.org
Fri Jan 25 18:56:13 CET 2008
On Jan 25, 2008 7:47 AM, Gisle Aas <gisle at activestate.com> wrote:
> On Jan 24, 2008, at 20:32, Guido van Rossum 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.
> I think it would be been nice if "..." raised an NotYetImplemented
> exception if executed as a lone statement. Is that desirable and
That wouldn't work, because in slice syntax it's always been allowed
and meant to return the Ellipsis object. Changing this in some
contexts but not others would be confusing.
> BTW, Perl 6 also introduce the same feature and Larry calls it the
> "yadayadayada operator".
Blah, bah. :-)
> > PEP 3100 has the reference:
> > * ``...`` to become a general expression element _ [done]
> > ..  python-3000 email
> > http://mail.python.org/pipermail/python-3000/2006-April/000996.html
>  http://dev.perl.org/perl6/doc/design/syn/S06.html
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000