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


Groups > comp.lang.python > #12554

Re: Constructors...BIIIIG PROBLEM!

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <motoom@xs4all.nl>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; '"if': 0.04; 'fixes': 0.05; 'class,': 0.15; 'from:addr:xs4all.nl': 0.16; 'message- id:@xs4all.nl': 0.16; 'received:194.109': 0.16; 'received:194.109.24': 0.16; 'received:xs4all.nl': 0.16; 'subject:PROBLEM': 0.16; "why's": 0.16; 'x-mailer:apple mail (2.1084)': 0.16; 'wrote:': 0.16; 'resolution': 0.21; 'header:In- Reply-To:1': 0.22; 'sep': 0.23; 'object,': 0.24; 'thu,': 0.28; 'order.': 0.29; 'url:article': 0.29; '+0200,': 0.30; 'url:releases': 0.30; 'class': 0.30; 'to:addr:python-list': 0.33; 'url:python': 0.36; 'things,': 0.37; 'but': 0.37; 'url:org': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'url:docs': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'header:Message-Id:1': 0.61; 'greetings,': 0.66; 'url:3': 0.67; 'subject:!': 0.67; 'url:18': 0.77; 'derive': 0.84; 'url:datamodel': 0.84; 'url:reference': 0.84; 'amongst': 0.91
Content-Type text/plain; charset=iso-8859-1
Mime-Version 1.0 (Apple Message framework v1084)
Subject Re: Constructors...BIIIIG PROBLEM!
From Michiel Overtoom <motoom@xs4all.nl>
In-Reply-To <20110901082427.GA18046@arxnet.hu>
Date Thu, 1 Sep 2011 11:04:18 +0200
Content-Transfer-Encoding quoted-printable
References <CABWGKeW6sw2GJghQRbPcUA7_EO2V7SX5iJH0Pz0u513wX9TPNw@mail.gmail.com> <8D536E41-941B-45A8-BD27-0896ACD8CCD5@xs4all.nl> <20110901082427.GA18046@arxnet.hu>
To PYTHON <python-list@python.org>
X-Mailer Apple Mail (2.1084)
X-Virus-Scanned by XS4ALL Virus Scanner
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.652.1314868352.27778.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314868352 news.xs4all.nl 2491 [2001:888:2000:d::a6]:58776
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12554

Show key headers only | 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