New-style exceptions?

Aahz aahz at pythoncraft.com
Sun Mar 31 20:36:55 EST 2002


In article <a88cms$lhr$1 at bob.news.rcn.net>,
Raymond Hettinger <python at rcn.com> wrote:
>"Aahz" <aahz at pythoncraft.com> wrote in message
>> 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.
>
>Is there a reason why Exception can't be defined to inherit from
>'object' so that Uncle Bob does the right thing?

Patience, grasshopper, patience.  It will be at least another version or
two before any classic classes get converted to new-style classes, and I
doubt Exception would be the first.
-- 
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