New-style exceptions?

Aahz aahz at pythoncraft.com
Sun Mar 31 15:41:16 EST 2002


In article <slrnaaerno.ok0.mlh at vier.idi.ntnu.no>,
Magnus Lie Hetland <mlh at vier.idi.ntnu.no> wrote:
>
>Is there a reason why new-style objects can't be used in the raise
>statement?

Because that's the way it currently works.  Inherit from Exception and
Bob's your uncle.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-list mailing list