Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Utilities for warnings. Shoudn’t we just use the built in warnings module.
Standard warning printer. Gives formatting consistency.
Output is sent to io.stderr (sys.stderr by default).
Options:
-exit_val (1): exit value returned by sys.exit() for a level 4 warning. Ignored for all other levels.
Equivalent to warn(msg,level=1).
Equivalent to warn(msg,level=3).
Equivalent to warn(msg,exit_val=exit_val,level=4).