A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008956.html below:

[Python-Dev] Lukewarm about range literals

[Python-Dev] Lukewarm about range literals [Python-Dev] Lukewarm about range literalsFredrik 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>




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4