Content deleted Content added
add linkt to continuation |
Pi Delport (talk | contribs) generators are not like continuations (see the talk page) |
||
Line 21:
</pre>
In Python, a generator can be thought of as an iterator that contains a
Because generators compute their yielded values only on demand, they are useful for representing sequences that are expensive to compute, or even infinite.
|