When to derive from object?

2009-10-13 Thread Igor Mikushkin
Hello all! I'm a newbie to Python. Could you please say me when it is better to derive from object and when not? Thanks, Igor -- http://mail.python.org/mailman/listinfo/python-list

Re: When to derive from object?

2009-10-13 Thread Bruno Desthuilliers
Igor Mikushkin a écrit : Hello all! I'm a newbie to Python. Welcome onboard Could you please say me when it is better to derive from object and when not? - When not : when using Python = 3.0, or when already subclassing another class. - When : any other case !-) -- http

Re: When to derive from object?

2009-10-13 Thread Matimus
On Oct 13, 7:45 am, Igor Mikushkin igor.mikush...@gmail.com wrote: Hello all! I'm a newbie to Python. Could you please say me when it is better to derive from object and when not? Thanks, Igor The only reason to derive from 'object' is if there is some sort of weird side effect of using

Re: When to derive from object?

2009-10-13 Thread Matimus
On Oct 13, 8:02 am, Matimus mccre...@gmail.com wrote: On Oct 13, 7:45 am, Igor Mikushkin igor.mikush...@gmail.com wrote: Hello all! I'm a newbie to Python. Could you please say me when it is better to derive from object and when not? Thanks, Igor The only reason to derive from

Re: When to derive from object?

2009-10-13 Thread Anson Mackeracher
Can someone point me to some reason on why not to derive from Object when using Python = 3.0? I am a Python novice, I need some background. On Oct 13, 10:49 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Igor Mikushkin a écrit : Hello all! I'm a newbie to Python

Re: When to derive from object?

2009-10-13 Thread Benjamin Kaplan
On Tue, Oct 13, 2009 at 1:34 PM, Anson Mackeracher amack...@gmail.com wrote: Can someone point me to some reason on why not to derive from Object when using Python = 3.0? I am a Python novice, I need some background. It's redundant. Python 3 cleaned up a lot of the warts that appeared

Re: When to derive from object?

2009-10-13 Thread Paul Rudin
Benjamin Kaplan benjamin.kap...@case.edu writes: It's redundant. Python 3 cleaned up a lot of the warts that appeared in Python over the years. Old-style classes (classes that didn't inherit from object) were one of them. Every class in Python 3 is derived from object whether you specify it

Re: When to derive from object?

2009-10-13 Thread Terry Reedy
Paul Rudin wrote: Benjamin Kaplan benjamin.kap...@case.edu writes: It's redundant. Python 3 cleaned up a lot of the warts that appeared in Python over the years. Old-style classes (classes that didn't inherit from object) were one of them. Every class in Python 3 is derived from object whether

Re: When to derive from object?

2009-10-13 Thread greg
Terry Reedy wrote: Every function with default arguments can be called two or more ways. Every function that returns None can be written two or more ways. And in general, anything of any sort with any kind of default can be written in two ways. Somehow I doubt that the ZoP was intended to