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:
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:
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
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
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