raising classes

Robert Amesz sheershion at mailexpire.com
Wed Aug 21 09:04:53 EDT 2002


Aahz wrote:

> Before I add to the current high volume on python-dev, does anyone
> know why the exception mechanism uses class objects rather than
> class instances.  In other words, why don't we do
> 
>     raise Exception()

Well -- I *do* raise exceptions that way. From the day I learned that 
an exception is just a class instance. I like consistency.


Robert Amesz



More information about the Python-list mailing list