On Jan 25, 2008 7:47 AM, Gisle Aas <[EMAIL PROTECTED]> 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 > doable?
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"[1]. Blah, bah. :-) > Regards, > Gisle > > > > > PEP 3100 has the reference: > > * ``...`` to become a general expression element [16]_ [done] > > .. [16] python-3000 email > > http://mail.python.org/pipermail/python-3000/2006-April/000996.html > > [1] http://dev.perl.org/perl6/doc/design/syn/S06.html -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com