[Python-Dev] GeneratorExit inheriting from Exception

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 21 02:55:06 CET 2006


Barry Warsaw wrote:

> One quibble.  Since the term used for the general concept of something
> that is raised and caught is "exception" and since all the raise-able
> objects live in a module called "exceptions", it is confusing that
> "except Exception" will not catch all exceptions.

My thoughts exactly.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiam!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list