PyDocs

Nav

Python Language Services

Raise

ast

class
  • Raise(exc, cause)
Raise(expr? exc, expr? cause)
1 Example
>>> print(ast.dump(ast.parse('raise x from y'), indent=4))
Module(
    body=[
        Raise(
            exc=Name(id='x'),
            cause=Name(id='y'))])
from the Python docs
See Also
No see-alsos for ast/Raise
0 Notes
No notes for Raise