Next: The break statement Up: Simple statements Previous: The return statement

The raise statement


raise_stmt:     "raise" condition ["," condition]

raise evaluates its first condition, which must yield a string object. If there is a second condition, this is evaluated, else None is substituted.

It then raises the exception identified by the first object, with the second one (or None) as its parameter.


guido@cwi.nl