Are all classes new-style classes in 2.4+?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sun Dec 31 07:48:45 EST 2006


Isaac Rodriguez wrote:

> This is probably a very basic question, but I've been playing with
> new style classes, and I cannot see any difference in behavior
> when a declare a class as:
> 
> class NewStyleClass(object):
> 
> or
> 
> class NewStyleClass:

Try multiple inheritance (the order of superclass selection is
different) or try using the keyword super.
 
Regards,


Björn

-- 
BOFH excuse #113:

Root nameservers are out of sync




More information about the Python-list mailing list