Are all classes new-style classes in 2.4+?



Hi,

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:

I declare property members in both and it seems to work the exact same
way. I am using Python 2.4, and I was wondering if by default, all
classes are assumed to be derived from "object". If not, can someone
point me to some place where I can learn more about new-style classes
and their advantages? All the documentation I've found is very vague.

Thanks,

- Isaac.

.



Relevant Pages

  • Re: Jane and I have solved the economic crisis
    ... person with the most propery and money the winner, ... Jane and I figured out that the best approach is to just declare ... Then we take out "The Game of Life" and start playing that instead. ...
    (rec.music.gdead)
  • Re: Jane and I have solved the economic crisis
    ... person with the most propery and money the winner, ... Jane and I figured out that the best approach is to just declare ... Then we take out "The Game of Life" and start playing that instead. ...
    (rec.music.gdead)
  • Re: Announcing of actions :LSJ:
    ... If I declare an action, and do not explicitly state every single ... playing), so why do we want to chain ourselves with this kind of idiot ... that should be discussed and dealt with by the judge/s. ... People can read their cards properly before playing them, ...
    (rec.games.trading-cards.jyhad)
  • Jane and I have solved the economic crisis
    ... person with the most propery and money the winner, ... Jane and I figured out that the best approach is to just declare ... Then we take out "The Game of Life" and start playing that instead. ...
    (rec.music.gdead)
  • Dilemma: TDU
    ... Having spent big chunks of the last week playing the Test Drive Unlimited demo, I can now declare my insane love for it and it is firmly at the top of my most wanted list. ...
    (uk.games.video.misc)