Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.075 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; '"class"': 0.09; 'integers': 0.09; 'subtle': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'ah,': 0.16; 'dict': 0.16; 'hides': 0.16; 'interpreter,': 0.16; 'subject:object': 0.16; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'lets': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; 'container': 0.31; 'object.': 0.31; 'piece': 0.31; 'class': 0.32; 'critical': 0.32; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'c++': 0.36; 'set.': 0.36; 'members.': 0.37; 'two': 0.37; 'list': 0.37; 'called': 0.40; 'how': 0.40; "you're": 0.61; "you've": 0.63; 'making': 0.63; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'combining': 0.68; 'gotten': 0.74; 'gain': 0.79; 'difference.': 0.84; 'thing,': 0.91; 'washington': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6SPd8KlrPaplGSFvkz8OkppO9K0n0lh78uvJcFYNHZo=; b=c3fJhpNNi1puq+kp2GQfuR8O3RQ6wRxkZnQNRjxU2oTkduKR6uWHBm2kpyzfUA0km0 rS6nafLsEFEtIQzzUc9tVTM7xnRfx+Be79I/FL7XzmLeju+OKv+StWDeHGIifHFhEwMG 2ShOXz56DFMTzZacz2MUr9UXhEAgV0wsM369P8P6t6Rt2gMK2wdIsmMDNZZa7VGyg1By fAxBd0mpYu6QKISbrUJspLuXQzVtrkVhSI+xHqLZQeo2kWZ1vOV+5PACIWXQ9j4hrviV nWSD5jd99m+R4SFxnEwt02vfXsS+O14s7tSIGPZCgq7yKF+8+1F6NNlMPF4Ut8IaiIbq Ep0w== MIME-Version: 1.0 X-Received: by 10.194.133.106 with SMTP id pb10mr993066wjb.62.1372208842660; Tue, 25 Jun 2013 18:07:22 -0700 (PDT) In-Reply-To: References: <15ba0011-bbf1-42f7-b3ea-1c1d4b70e56b@googlegroups.com> <51c66962$0$29999$c3e8da3$5496439d@news.astraweb.com> <20130623133546.GA2308@capricorn> <51c723b4$0$29999$c3e8da3$5496439d@news.astraweb.com> <51C74D6E.6030200@rece.vub.ac.be> Date: Tue, 25 Jun 2013 18:07:22 -0700 Subject: Re: What is the semantics meaning of 'object'? From: Mark Janssen To: Ian Kelly Content-Type: text/plain; charset=ISO-8859-1 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372208844 news.xs4all.nl 15874 [2001:888:2000:d::a6]:60259 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49221 >>> Combining two integers lets you make a Rational. >> >> Ah, but what is going to group them together? You see you've already >> gotten seduced. Python already uses a set to group them together -- >> it's called a Dict and it's in every Class object. > > When you inherit a "set" to make a Rational, you're making the > statement (to the interpreter, if nothing else) that a Rational is-a > set. No you don't *inherit* a set to make a Rational, although you gain a set to make it. It's a subtle thing, because at the center of it articulates the very difference between a piece of data and a container to hold that data. Or is the container the data? C++ already solves this di-lemma. It made "class" which is exactly like a "struct", but hides all it's data members. That critical distinction makes all the difference. I don't know how many people on the list really appreciate it. -- MarkJ Tacoma, Washington