execution error

Paul Rubin http
Mon May 23 13:29:58 EDT 2005


"Ximo" <elrei69 at yahoo.es> writes:
> And my question is how can show the execution error whitout exit of the 
> program, showing it in the error output as...
> >>6/0
> >>"Error: Division per 0"

Trap the ArithmeticError exception and go by the name of the exception
class.  See the language ref manual about how exceptions work.



More information about the Python-list mailing list