<div dir="ltr"><font size="4">Hey guys,</font><div><font size="4"><br></font></div><div><font size="4">I'm attaching a simple class that I created in Python.... Python 3 to be specific, but I think it should work in Python 2 as well, maybe.  Anyhow, is there a way to implement the same concept using a <b><i>yield statement</i></b> in a function to create a generator object?  Just wondering.  Let me know, thanks!</font></div><div><font size="4"><br></font></div><div><font size="4">Best,</font></div><div><font size="4"><br></font></div><div><font size="4">Douglas Lewit</font></div><div><font size="4"><br></font></div><div><font size="4">P.S.  Obviously if you use a generator object to do this then the generator object would never produce the StopIteration error.  But I'm kind of confused about how to create and define a generator object that would produce this cyclical behavior in an array or list.</font></div><div><font size="4"><br></font></div><div><font size="4"><br></font></div></div>