addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

An in-depth look at generators

Generators have been evolving in Python over quite a long time:

  • Generators added in Python 2.2 (PEP 255)
  • Generator Expressions added in Python 2.4 (PEP 289)
  • Enhanced Generators added in Python 2.5 (PEP 342)
  • "yield from" added in Python 3.3 (PEP 380)

They have grown from a simple concept for lazily generating a (perhaps infinite) series of data values into a coroutine capability through the last two additions above.

Bruce will do an in-depth look at generators: the good, the bad, and the ugly...

Join or login to comment.

  • Tim B.

    Bruce's presentation was very thorough. He used the ipython Notebooks webserver to present the material, which was a perfect followup to Daniel Dye's presentation of this technology.

    Generators seem to be the python equivalent of Java's java.util.Enumeration interface. Also learned the 'yield' statement. Thanks Bruce!

    February 12, 2014

  • Rigel T.

    Was super informative. I feel a lot more comfortable with generators, iterators, and for loops.

    February 12, 2014

  • John Samuel A.

    yield "more pizza" ;)

    1 · February 11, 2014

  • Lyle S.

    no one is answering the phone listed to call...

    February 11, 2014

  • Jeremy W.

    Looks like I'm missing out... Deployment issues and now traffic.

    February 11, 2014

14 went

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy