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

No rating
Conference: PyCon US 2023
Year: 2023

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.

Comments

No comments yet. Be the first to comment!

Log in to Comment

Cookies analytics

Nous utilisons des cookies analytics uniquement pour les statistiques et l’amélioration du site. Rien n’est activé sans votre consentement explicite.