Re: Suggesting the use of StandardError as base of error Exceptions.

2006-03-06 Thread Steven Bethard
Antoon Pardon wrote: > I then took a look at http://docs.python.org/lib/module-exceptions.html > which describes the exception heirarchy as follows: > > Exception > +-- SystemExit > +-- StopIteration > +-- StandardError > | + > | + All kind of error exceptions >

Re: Suggesting the use of StandardError as base of error Exceptions.

2006-03-06 Thread Kent Johnson
Diez B. Roggisch wrote: > Antoon Pardon schrieb: >> Now I was wondering if it wouldn't be better that for exception >> that indicate some error condition that these would inherit >> from StandardError and that this would be indicated in the >> documentation and reflected in the stdlib? >> >> Would

Re: Suggesting the use of StandardError as base of error Exceptions.

2006-03-06 Thread Diez B. Roggisch
Antoon Pardon schrieb: > In a number of cases I have a program that looks like the following. > > for case in all_cases: > try: > treat(case) > except Exception, ErrInfo: > generate_traceback() > > The idea is to get as much information as possible when something > goes wrong but at t