Skip to content

An in-depth look at generators, part 2

Photo of Bruce Frederiksen
Hosted By
Bruce F.
An in-depth look at generators, part 2

Details

Last month, we got started on generators, covering the basics and part of the "Enhanced Generators" capabilities added in Python 2.5 with PEP 342.

We will finish the presentation on generators this month, completing our look at the "Enhanced Generator" capabilities that let you build generators as consumers, rather than just as producers; and looking at the new "yield from" capability that was added in Python 3.3 with PEP 380.

We'll also examine the use of generators as co-routines, where they are not necessarily dealing with streams of data. These can be used to build fibers (http://en.wikipedia.org/wiki/Fiber_(computer_science)) (user threads) and can be used for asynchronous programming.

Photo of Tampa Bay Python group
Tampa Bay Python
See more events
First WaVE Venture Center (2nd Floor)
400 N Ashley Dr, Tampa FL 33602 · Saint Petersburg, FL