[Tutor] recursive generator

Steven D'Aprano steve at pearwood.info
Sun Mar 7 16:54:48 CET 2010

On Mon, 8 Mar 2010 01:49:21 am Stefan Behnel wrote:
> Steven D'Aprano, 07.03.2010 14:27:
> > __iter__ should be an ordinary function, not a generator. Something
> > like this should work:
> That's just an unnecessarily redundant variation on the above. It's
> perfectly ok if __iter__() is a generator method.

So it is. Thank you for the correction.

Steven D'Aprano

More information about the Tutor mailing list