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

2006-12-31 Thread Steven D'Aprano
On Sun, 31 Dec 2006 03:57:04 -0800, Isaac Rodriguez wrote: > 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:

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

2006-12-31 Thread Felipe Almeida Lessa
On 31 Dec 2006 03:57:04 -0800, Isaac Rodriguez <[EMAIL PROTECTED]> wrote: > I am using Python 2.4, and I was wondering if by default, all > classes are assumed to be derived from "object". This won't tell you advantages or disadvantages, but will show you that the default still is the old-style:

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

2006-12-31 Thread Rene Fleschenberg
Isaac Rodriguez wrote: > 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". No, they are not. It's just that the "basic functionality" seems to work the same

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

2006-12-31 Thread Bjoern Schliessmann
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 supe

Are all classes new-style classes in 2.4+?

2006-12-31 Thread Isaac Rodriguez
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