Let's Review the yield Keyword

Hosted By
Andrew K.

Details
From it's beginning yield has offered a really interesting tool for Python developers -- pause execution and switch contexts.
That functionality was later extended to provide stopping points to collect return values in functions/methods, allowing developers to write their own schedulers and co-routines.
Aside: Check out David Beasley's talk at PyCon last year for a really cool explanation of that, he basically writes an operating system live. https://www.youtube.com/watch?v=MCs5OvhV9S4
In this meetup we'll take a look at the internals of the yield keyword, and the process that occurs when we pause script execution this way.

Deep Dive into Python: Know Thy Interpreter
See more events
Buzzfeed
111 E 18th Street · New York, NY
Let's Review the yield Keyword