Re: Are all classes new-style classes in 2.4+?



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

.



Relevant Pages

  • Re: Are all classes new-style classes in 2.4+?
    ... style classes, and I cannot see any difference in behavior when a ... I declare property members in both and it seems to work the exact same ... def setter: ... Now try with an old-style class. ...
    (comp.lang.python)
  • Are all classes new-style classes in 2.4+?
    ... 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 ... I declare property members in both and it seems to work the exact same ...
    (comp.lang.python)