Python Generators

Generators were first introduced to Python 2.2. Also referred to as "weightless threads", they allow you to replace threads or processes. Creation, entry and return are virtually free, unlike the alternatives, and encourages an asynchronous approach to handling background events.

Read More