Link Details

Link 108543 thumbnail
User 282056 avatar

By fholmstrom
via loveandtheft.org
Published: Aug 31 2008 / 19:46

Generators is a concept that was introduced in Pyethon at version 2.2, back then they were unidirectional that only allowed information to be passed out of the generator and not back into it, which limited their use to simple iterators and not much else. This was changed / enhanced in Python 2.5 when both data and exceptions now can be passed back into to generator. The changes made in 2.5 allowed for generators to be used as coroutines enabling them to function in complex event-driven programming such as asynchronous I/o, games, etc.
  • 11
  • 0
  • 790
  • 291

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)