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
- Large Language Models can run tools in your terminal with LLM 0.26 - 27th May 2025
- Highlights from the Claude 4 system prompt - 25th May 2025
- Live blog: Claude 4 launch at Code with Claude - 22nd May 2025