Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12554

Re: Constructors...BIIIIG PROBLEM!

Subject Re: Constructors...BIIIIG PROBLEM!
From Michiel Overtoom <motoom@xs4all.nl>
Date 2011-09-01 11:04 +0200
References <CABWGKeW6sw2GJghQRbPcUA7_EO2V7SX5iJH0Pz0u513wX9TPNw@mail.gmail.com> <8D536E41-941B-45A8-BD27-0896ACD8CCD5@xs4all.nl> <20110901082427.GA18046@arxnet.hu>
Newsgroups comp.lang.python
Message-ID <mailman.652.1314868352.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Sep 1, 2011, at 10:24, Hegedüs Ervin wrote:

> On Thu, Sep 01, 2011 at 10:00:27AM +0200, Michiel Overtoom wrote:
>> Derive your class from object,
> 
> why's that better than just create a simple class, without
> derive?

Amongst other things, fixes to the type system and the method resolution order.

http://docs.python.org/reference/datamodel.html#new-style-and-classic-classes
http://unspecified.wordpress.com/2010/11/18/pythons-new-classes-vs-old-classes/
http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html
http://www.python.org/download/releases/2.2.3/descrintro/

Greetings,

-- 
"If you don't know, the thing to do is not to get scared, but to learn." - Ayn Rand      


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Constructors...BIIIIG PROBLEM! Michiel Overtoom <motoom@xs4all.nl> - 2011-09-01 11:04 +0200

csiph-web