Staging: this is not the live site, pydocs.org.
Raises a GeneratorExit exception at the point where the generator function is currently suspended (equivalent to calling throw(GeneratorExit)).
Changed in 3.13
- 3.13: If a generator returns a value upon being closed, the value is returned by close(). Previously, it returned None.