Iterators & generators (RE: Real Problems with Python)

Aahz Maruch aahz at
Mon Feb 14 16:03:20 CET 2000

In article <001101bf76b6$07a5e020$822d153f at tim>,
Tim Peters <tim_one at> wrote:
>[Samuel A. Falvo II, wonders about "suspend" semantics after
> Tim's unelaborated example]
>[Aahz Maruch, proves that you don't have to be a lambda-head to
> pick up the thrust of it at once -- thanks!]

I have to admit that I used Icon briefly in a CS class more than a
decade ago; it made much more of an impression on me than Lisp did, even
though I still have my LISPcraft book and I can't seem to find my Icon
book.  (My professor was from UoA.)  It was interesting trying to cast
my memory back that far.

BTW, it turns out that much of the Icon documentation is now on-line at

>From my POV, Icon is a lot like Perl written by a Pascal programmer,
with (from my more experienced viewpoint) its almost excessive emphasis
on expressions rather than statements.  I think that overall Python
doesn't go quite far enough in that direction, but adding generators
should make up much of the balance.
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

Have you coined a word today?

More information about the Python-list mailing list