Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   RE: Creating an iterator in a class (http://www.velocityreviews.com/forums/t955864-re-creating-an-iterator-in-a-class.html)

Joseph L. Casale 12-27-2012 03:45 PM

RE: Creating an iterator in a class
 
>Have the method yield instead of returning:

Thanks, that was simple, I was hung up on implementing magic methods.

Thanks for the pointers guys!
jlc


All times are GMT. The time now is 01:25 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.