> what makes you think that resuming a generator won't involve function
> calls ?

That was not what I wrote.

I referred to what Peter Hansen <[EMAIL PROTECTED]> wrote in 
[EMAIL PROTECTED]:

> I believe the more modern approach to this is to use generators in some 
> way, yield each other as the next state.  This way you avoid all almost 
> all the function call overhead (the part that takes significant time, 
> which is setting up the stack frame)

The way I understand this, resuming a generator causes less overhead than the 
inital overhead of a function call.

Again, I'm just a poor scripting dilettant who's asking questions.

Sincerely,

Wolfgang Keller

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to