Vladimir

63%
Flag icon
We don’t usually need to terminate a generator, because it is garbage collected as soon as there are no more valid references to it. If you need to explicitly terminate it, use the .close() method,
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview