What are you yield from. Talk from PyCon DE 2023

Опубликовано: 02 Август 2026
на канале: Maxim Danilov
278
0

Many developers avoid using generators. For example, many well-known python libraries use lists instead of generators. The generators themselves are slower than normal list loops, but their use in code greatly increases the speed of the application. Let’s discover why.

Many developers, avoid to use the generators in regular python code:

It is hard to debug,
it is not easy to profile,
it is not obviously to refactor.
it requires to use special algorithms.
In this talk i speak about generator pipelines, one-line-generators, builtin-generators, custom generators with yield and yield from.