By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,386 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,386 IT Pros & Developers. It's quick & easy.

Ellipsis outside a slice

P: n/a
Is there a reason why the ... notation as a literal for Ellipsis is
only allowed inside a slice? Would allowing it elsewhere frighten the
parser?

Chris Perkins
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Chris Perkins" <ch************@hotmail.com> wrote in message
news:45**************************@posting.google.c om...
Is there a reason why the ... notation as a literal for Ellipsis is
only allowed inside a slice? Would allowing it elsewhere frighten the parser?


It would complicate the parser for no purpose. One can already access
the singleton ellipsis object by it name -- Ellipsis. It was invented
and added for use in extended slices by Numerical Python and has no
grammatical use outside slices.

TJR
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.