title: is there an alternative way of calling next on python generators?
body: <p>I have a generator and I would like to know if I can use it without having to worry about StopIteration , and I would like to use it without the <strong><code>for item in generator</code></strong> . I would like to use it with a while statement for example ( or other constructs ). How could I do that ?</p>