Your Python Code Needs Generators

ArjanCodes ยท Beginner ยท๐Ÿ“ ML Fundamentals ยท2d ago
Talk to the internet when you need answers. Talk to Recall when you need your answers. ๐Ÿ”— https://www.recall.it/?t=arjan ย  Use code ARJAN25 for 25% off,ย valid until 1 June 2026. Do the Ports & Adapters quiz here: https://app.getrecall.ai/challenge/e24770a5-1aab-5d6c-b2a8-dbee424c22a4 Most Python developers think generators are just about saving memory. Thatโ€™s only a small part of the story. In this video, I show how generators give you control over when work happens, and how you can use them to build powerful data pipelines, handle backpressure, enable two-way communication, and even work with async streams. ๐Ÿ”ฅ GitHub Repository: https://git.arjan.codes/2026/generators. ๐ŸŽ“ ArjanCodes Courses: https://www.arjancodes.com/courses. ๐Ÿ’ฌ Join my Discord server: https://discord.arjan.codes. โŒจ๏ธ Keyboard Iโ€™m using: https://amzn.to/49YM97v. ๐Ÿ”– Chapters: 0:00 Intro 0:44 What are Generators? 1:44 Step 1: From Strings to Structured Data 6:36 Sponsored Section (recall.it) 9:08 Step 2: Pipelines with Function Composition 13:15 Step 3: Backpressure โ€” Why This Scales 15:08 Step 4: Two-Way Communication with send() 17:52 Bonus: Generators Can Return a Value 19:08 Step 5: Async Generators 22:58 Final Thoughts #arjancodes #softwaredesign #python
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Related AI Lessons

โšก
I read 50 Python library lists so you donโ€™t have to here are the 20 that actually matter
Discover the top 20 Python libraries that matter, beyond Pandas and pip, to stay ahead in the industry
Medium ยท Python
โšก
A Novel Approach to Player Rankings in European Football
Learn a novel approach to player rankings in European football using multi-dimensional analysis and machine learning
Medium ยท Machine Learning
โšก
Lagrange Multipliers
Learn to optimize functions with constraints using Lagrange Multipliers and understand the conditions for optimality
Dev.to ยท Sajjad Rahman
โšก
Optimal Decision Tree Construction
Learn to build optimal decision trees by mastering the art and science of construction, crucial for AI and data science applications
Medium ยท AI

Chapters (10)

Intro
0:44 What are Generators?
1:44 Step 1: From Strings to Structured Data
6:36 Sponsored Section (recall.it)
9:08 Step 2: Pipelines with Function Composition
13:15 Step 3: Backpressure โ€” Why This Scales
15:08 Step 4: Two-Way Communication with send()
17:52 Bonus: Generators Can Return a Value
19:08 Step 5: Async Generators
22:58 Final Thoughts
Up next
Flask Fundamentals, App Basics, and Food Tracker App
Coursera
Watch โ†’