PyDocs

Nav

Python Runtime Services

generator.throw

builtins

method
  • generator.throw(value)
  • generator.throw(type[, value[, traceback]])
Raises an exception at the point where the generator is currently suspended.
Changed in 3.12
  • 3.12: The second signature (type[, value[, traceback]]) is deprecated and may be removed in a future version of Python.
0 Examples
No examples for builtins/generator.throw.
See Also
No see-alsos for builtins/generator.throw
0 Notes
No notes for generator.throw