What does the key word “yield” in Python do?
11th October 2010
My answer to What does the key word “yield” in Python do? on Quora
The best documentation I’ve seen on generators is this: http://www.dabeaz.com/generators/
More recent articles
- The last six months in LLMs, illustrated by pelicans on bicycles - 6th June 2025
- Tips on prompting ChatGPT for UK technology secretary Peter Kyle - 3rd June 2025
- How often do LLMs snitch? Recreating Theo's SnitchBench with LLM - 31st May 2025