Ellipsis outside a slice

Discussion in 'Python' started by Chris Perkins, Oct 8, 2003.

  1. 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
    Chris Perkins, Oct 8, 2003
    #1
    1. Advertising

  2. Chris Perkins

    Terry Reedy Guest

    "Chris Perkins" <> wrote in message
    news:...
    > 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
    Terry Reedy, Oct 9, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    2
    Views:
    514
    Hans Kesting
    Feb 14, 2006
  2. Wayne Folta

    Ellipsis usage?

    Wayne Folta, Feb 18, 2004, in forum: Python
    Replies:
    2
    Views:
    4,897
    Peter Otten
    Feb 18, 2004
  3. =?iso-8859-1?q?Jonas_K=F6lker?=

    !wtf ellipsis

    =?iso-8859-1?q?Jonas_K=F6lker?=, Aug 13, 2004, in forum: Python
    Replies:
    6
    Views:
    575
    Erik Max Francis
    Aug 15, 2004
  4. Jerry Sievers

    slicing, mapping types, ellipsis etc.

    Jerry Sievers, Nov 29, 2004, in forum: Python
    Replies:
    9
    Views:
    355
    Kent Johnson
    Nov 30, 2004
  5. =?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=

    doctest's ELLIPSIS

    =?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=, Apr 29, 2005, in forum: Python
    Replies:
    5
    Views:
    853
    =?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=
    May 2, 2005
Loading...

Share This Page