It’s Friday Evening and I Need to Talk About Python Generators

📰 Medium · Python

It’s Friday evening. Weekend is here. And for some reason my brain thought this was a good time to finally write about Python generators. Continue reading on Python in Plain English »

Published 8 May 2026

Full Article

Title: It’s Friday Evening and I Need to Talk About Python Generators

URL Source: https://python.plainenglish.io/its-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea?source=rss------python-5

Published Time: 2026-05-08T19:15:21Z

Markdown Content:
# It’s Friday Evening and I Need to Talk About Python Generators | by Pradeep Mishra | May, 2026 | Medium

[Sitemap](https://python.plainenglish.io/sitemap/sitemap.xml)

[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://python.plainenglish.io/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ppp.mishra124%2Fits-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

[](https://python.plainenglish.io/?source=post_page---top_nav_layout_nav-----------------------------------------)

Get app

[Write](https://python.plainenglish.io/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)

[Search](https://python.plainenglish.io/search?source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://python.plainenglish.io/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40ppp.mishra124%2Fits-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

![Image 1](https://miro.medium.com/v2/resize:fill:64:64/1*dmbNkD5D-u45r44go_cf0g.png)

[Mastodon](https://me.dm/@pradeep_mishra)

Member-only story

# It’s Friday Evening and I Need to Talk About Python Generators

[![Image 2: Pradeep Mishra](https://miro.medium.com/v2/resize:fill:64:64/1*8MSU_a2IgaA58uhveo9ZVg.jpeg)](https://python.plainenglish.io/@ppp.mishra124?source=post_page---byline--90e35a5672ea---------------------------------------)

[Pradeep Mishra](https://python.plainenglish.io/@ppp.mishra124?source=post_page---byline--90e35a5672ea---------------------------------------)

Follow

7 min read

·

Just now

[](https://python.plainenglish.io/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2F90e35a5672ea&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ppp.mishra124%2Fits-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea&user=Pradeep+Mishra&userId=83a5f5b01501&source=---header_actions--90e35a5672ea---------------------clap_footer------------------)

[](https://python.plainenglish.io/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2F90e35a5672ea&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ppp.mishra124%2Fits-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea&source=---header_actions--90e35a5672ea---------------------bookmark_footer------------------)

[Listen](https://python.plainenglish.io/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3D90e35a5672ea&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40ppp.mishra124%2Fits-friday-evening-and-i-need-to-talk-about-python-generators-90e35a5672ea&source=---header_actions--90e35a5672ea---------------------post_audio_button------------------)

Share

Press enter or click to view image in full size

![Image 3](https://miro.medium.com/v2/resize:fit:700/1*tfWmgn_qLpCDsf2vTg6GXA.jpeg)

It’s Friday evening. Weekend is here. And for some reason my brain thought this was a good time to finally write about Python generators.

Not the boring “here’s what yield does” kind of article. I want to talk about what happens to your _thinking_ when generators actually click. Because when it clicked for me, I looked back at years of code and felt a little embarrassed. Not in a bad way. Just in a “oh, I was doi
Read full article → ← Back to Reads