Ellipsis outside a slice
Terry Reedy
tjreedy at udel.edu
Wed Oct 8 22:10:05 EDT 2003
"Chris Perkins" <chrisperkins37 at hotmail.com> wrote in message
news:45228044.0310081250.5b51e811 at posting.google.com...
> 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
More information about the Python-list
mailing list