Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
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).