[Python-Dev] [PEP204] Range Literals

Peter Schneider-Kamp peter@schneider-kamp.de
Sun, 16 Jul 2000 21:11:25 +0000

Moshe Zadka wrote:
> I think we decided we don't need those. The only reason people need
> generators is for extra efficiency in

>From following the recent discussion here (and from my Haskell brain
I thought that generators are also useful for stuff like:

even = (0:sys.maxint:2)
first20even = even[:20]

Having spend the weekend falling into cold mountain lakes, I may of
course be mistaken about this.

Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter@schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de