Загрузка страницы

Python yield Statement: Illustrated and Explained - A Basic Introduction to Generators

We’ll visualize and walk through the main concepts behind generators and use some example code to illustrate how they work in python.

Don't Forget To:
👍 Leave a Like (If You Enjoyed)
📺 Subscribe for more Videos
🔔 Turn On Your Notifications
📣 Comment to leave Suggestions/Ideas

Generators are an extremely useful tool in python but a concept that’s hard to understand at first. In this video we’ll walk through the basics of what a generator is, what it does (what “yield” means), and why it can be useful in your code and applications.

Twitter: @AutomagicTV

Great Code Execution Visualization Tool - http://www.pythontutor.com/visualize.html#mode=edit
Stack Overflow "yield from" Answer by Praveen Gollakota - https://stackoverflow.com/a/26109157
David Beazley Coroutines Course - https://dabeaz.com/coroutines/

PEP 255 - https://www.python.org/dev/peps/pep-0255/
PEP 342 - https://www.python.org/dev/peps/pep-0342/
PEP 380 - https://www.python.org/dev/peps/pep-0380/

---
00:00 - Intro
00:17 - What Are Generators?
01:07 - Iterables and Iterators
04:21 - How Generators Work
08:18 - Reading large Files with Generators
09:50 - Generator Expressions / Comprehensions
10:26 - Coroutines and Yield From
---

End title music by ikson: https://soundcloud.com/ikson

Halo clip source - https://www.youtube.com/watch?v=6Gmbo251apQ

Видео Python yield Statement: Illustrated and Explained - A Basic Introduction to Generators канала Automagic
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
27 марта 2021 г. 16:54:01
00:14:32
Яндекс.Метрика