Name
assert_options
Synopsis
mixed assert_options(intoption[, mixedvalue])
If value is specified, sets the
assert control option option to
value and returns the previous setting. If
value is not specified, returns the current
value of option. The following values for
option are allowed:
| Enable assertions. |
| Have assertions generate warnings. |
| Have execution of the script halt on an assertion. |
| Disable error reporting
while evaluating assertion code given to the |
| Call the specified user function to handle an assertion. Assertion callbacks are called with three arguments: the file, the line, and the expression where the assertion failed. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access