[Python-Dev] Lukewarm about range literals
Fredrik Lundh
fredrik@pythonware.com
Wed, 30 Aug 2000 15:30:23 +0200
greg wrote:
> If we're going to use any sort of ellipsis syntax here, I
> think it would be highly preferable to use the ellipsis
> token we've already got. I can't see any justification for
> having two different ellipsis-like tokens in the language,
> when there would be no ambiguity in using one for both
> purposes.
footnote: "..." isn't really token:
>>> class Spam:
... def __getitem__(self, index):
... print index
...
>>> spam = Spam()
>>> spam[...]
Ellipsis
>>> spam[. . .]
Ellipsis
>>> spam[.
... .
... .
... ]
Ellipsis
(etc)
</F>