[Python-Dev] Generator details

Tim Peters tim_one@email.msn.com
Sat, 10 Jul 1999 17:09:48 -0400


[Christian]
> The frame stack becomes a frame tree, and you can jump like Tarzan
> from leaf to leaf [...].

[Guido]
> Christian, I want to kiss you!  (OK, just a hug.  We're both
> Europeans. :-)

Not in America, pal -- the only male hugging allowed here is in the two
seconds after your team wins the Superbowl -- and even then only so long as
you haven't yet taken off your helmets.

> This one remark suddenly made me understand much better what
> continuations do -- it was the one missing piece of insight I still
> needed after Tim's explanation and skimming the Scheme tutorial a bit.

It's an insight I was missing too -- continuations are often *invoked* in
general directed-graph fashion, and before Christian said that I hadn't
realized the *implementation* never sees anything worse than a tree.

So next time I see Christian, I'll punch him hard in the stomach, and mumble
"good job" loudly enough so that he hears it, but indistinctly enough so I
can plausibly deny it in case any other guy overhears us.  *That's* the
American Way <wink>.

first-it's-hugging-then-it's-song-contests-ly y'rs  - tim