Nick Craig-Wood wrote:
Nick Coghlan <[EMAIL PROTECTED]> wrote:

Exactly. My advice is to use new-style classes unless you have a
reason not to (if you're inheriting from a builtin type, then there
is no need to inherit from object as well - the builtin types
already have the correct basic type).


Except for Exception!

Exception and anything that inherits from it is an old style class.

And 'classobj' is the correct basic type for an Exception, since, as you mentioned, new-style classes are currently unraisable :)


Cheers,
Nick.
I think there *is* work in progress to change that. . .

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to