jump to navigation

It’s been a while, and I’m still not back… November 29, 2005

Posted by andy in : coding, uni , 9 comments

so I’ll apologise for not updating the Screengrab thing. I’ll release a new version with a couple of minor fixes and some new languages very soon. Just have to finish my uni obligations.

This is just a quick note to say that Python generators are GREAT. Iterators are a pain to write, because you have to manage state and all that rubbish. Generators on the other hand just make them easy as pie. Write a couple of loops and put a “yield” statement in when you get to the next value you need. Dare I say “fantastic”? I dare!