Talks - Reuven M. Lerner: Generators, coroutines and nanoservices

  Рет қаралды 4,400

PyCon US

PyCon US

Күн бұрын

Generator functions have been a part of Python for many years already, and are a well known technique for creating iterators. But generators have a few lesser-known aspects, including their “send” method and the “yield from” syntax. Many Python developers shy away from using them, unsure of what they would do, or how they would be useful - seeing coroutines as a solution looking for a problem.
In this talk, I’ll tell you why coroutines can be useful, and how thinking about them as in-process “nanoservices” puts us in the right frame of mind to determine when they would and wouldn’t be appropriate.

Пікірлер: 6
@ronaldokun
@ronaldokun Жыл бұрын
Amazing talk. Some of those advanced or more obscure quirks which are a lot of fun when you happen to need it.
@etcher6841
@etcher6841 8 ай бұрын
What an awesome talk!
@taehyun-lee
@taehyun-lee Жыл бұрын
We only think the change was that we used yield, and yield changes everything. That tho!
@priteshugrankar6815
@priteshugrankar6815 10 ай бұрын
This is awesome!!
@skewty
@skewty 11 ай бұрын
Audio is corrupt on mobile
@cygn
@cygn 6 ай бұрын
not only there. sound is out-of-phase, seemingly for many (all?) of the pycon talks :(
How I Would Learn To Code (If I Could Start Over)
13:43
Namanh Kapur
Рет қаралды 7 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 7 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 18 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
Tutorials - Reuven M. Lerner: Comprehending comprehensions
2:17:33
"What is a Coroutine Anyway?" - John Reese (North Bay Python 2019)
30:27
North Bay Python
Рет қаралды 26 М.
Polars vs Pandas - what's the difference? - Cheuk Ting Ho
28:17
EuroPython Conference
Рет қаралды 824
Async Generators in Python: A Deep Dive - Łukasz Langa - code::dive 2023
43:20
code::dive conference
Рет қаралды 1,6 М.
Reuven M. Lerner - Practical decorators - PyCon 2019
29:12
PyCon 2019
Рет қаралды 41 М.
Talks - Bruce Eckel: Rethinking Objects
32:06
PyCon US
Рет қаралды 4,8 М.
Keynote: The big leap of Python 3.13 - Łukasz Langa
30:56
PyCon Thailand
Рет қаралды 11 М.
Demystifying Python's Async and Await Keywords
1:18:53
JetBrains
Рет қаралды 98 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 7 МЛН