Glossary: Python Beyond the Basics
generator
Also written: generators, yield
A function that uses `yield` to produce values one at a time, pausing between them. It can handle huge or endless data and can be used only once.
Glossary: Python Beyond the Basics
Also written: generators, yield
A function that uses `yield` to produce values one at a time, pausing between them. It can handle huge or endless data and can be used only once.