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: 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 In-Reply-To: <20110901082427.GA18046@arxnet.hu> Date: Thu, 1 Sep 2011 11:04:18 +0200 Content-Transfer-Encoding: quoted-printable References: <8D536E41-941B-45A8-BD27-0896ACD8CCD5@xs4all.nl> <20110901082427.GA18046@arxnet.hu> To: PYTHON 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sep 1, 2011, at 10:24, Heged=FCs Ervin wrote: > On Thu, Sep 01, 2011 at 10:00:27AM +0200, Michiel Overtoom wrote: >> Derive your class from object, >=20 > 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-clas= ses = http://unspecified.wordpress.com/2010/11/18/pythons-new-classes-vs-old-cla= sses/ = http://www.cafepy.com/article/python_types_and_objects/python_types_and_ob= jects.html http://www.python.org/download/releases/2.2.3/descrintro/ Greetings, --=20 "If you don't know, the thing to do is not to get scared, but to learn." = - Ayn Rand =20