Python code written in 1998, how to improve/change it?

Fredrik Lundh fredrik at pythonware.com
Wed Jan 25 06:50:19 EST 2006


Wolfgang Keller wrote:

> > > So basically if I want to write a long-running program in
> > > Python, it would make sense to code all functions that are
> > > likely to be called more than once as generators...
>
> This was meant as a question.
>
> > If they need to resume their calculations from where they left off after the
> > last yield.
>
> Well, no, independently from that.
>
> Just to avoid to inital overhead of the function call.
>
> ?

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

</F>






More information about the Python-list mailing list