[IPython-dev] [Ipython-svndiff] 2748 - sprinkled UsageError around
Fernando Perez
fperez.net at gmail.com
Sat Sep 8 21:00:00 EDT 2007
On 9/8/07, ipython-svndiff at scipy.org <ipython-svndiff at scipy.org> wrote:
> Author: vivainio
> Date: 2007-09-08 09:32:40 -0500 (Sat, 08 Sep 2007)
> New Revision: 2748
>
> Modified:
> ipython/trunk/IPython/Magic.py
> ipython/trunk/doc/ChangeLog
> Log:
> sprinkled UsageError around
> + * ipapi.py, Magic.py, iplib.py: Add ipapi.UsageError, a lighter weight
> + exception that won't print the tracebacks. Switched many magics to
> + raise them on error situations, also GetoptError is not printed
> + anymore.
Nice, I like both the idea and the resulting behavior. A good
convention to use throughout the system.
Cheers,
f
More information about the IPython-dev
mailing list