Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; '(1,': 0.09; 'python': 0.11; 'subject:python': 0.14; 'instance:': 0.16; 'simple.': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'wrote:': 0.16; 'attribute': 0.18; 'refers': 0.18; '>>>': 0.20; 'trying': 0.22; 'programming': 0.23; 'header:In-Reply-To:1': 0.24; '(most': 0.24; 'header:User-Agent:1': 0.26; 'object,': 0.27; 'url:wikipedia': 0.29; 'url:wiki': 0.30; "we're": 0.30; 'class.': 0.31; 'phone:': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'on,': 0.35; 'to:addr:python-list': 0.35; 'instance': 0.35; 'really': 0.35; 'url:org': 0.36; 'agree': 0.37; 'subject:: ': 0.37; 'starting': 0.38; 'say': 0.38; 'url:en': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'email:': 0.61; 'charset:windows-1252': 0.65; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; "'foo'": 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/+HhdQa0mTXNZfr40HGiiElyhXvyQfSwK0Af8z1hhwk=; b=scObSYsXhlZ+s6k0wUNrHUGKaoyvEE7AwaA6nMqZg72nIk/geg8lZQeDqRgWHvaPWv iZbrMJzC6i1LriZHYhigV8y3wsj+jFudeOQtw5Km5P/8RAlgC0rpWCWJSALaCrgSwbJs wphfG9nrRGidhg1JDsdHC/fMhtSQXogVdgXOta9/t2NCalVMZaSY9sUXfn1CHrf4okeR 4qzY45q94Wh58h6DlLZL3J4UuiX7ZlSK+0J9LqF8nStwK9b8ttWGSJDSZlPzG45c6+ii ZbXGlsa4ij9FDUtv01zOU8sOQkaX8+JQCTCyqBFCKKuBi8hTjHvb05MaOXNDEzZcyfUz AyQg== X-Received: by 10.194.142.242 with SMTP id rz18mr61941524wjb.76.1433333460413; Wed, 03 Jun 2015 05:11:00 -0700 (PDT) From: Marco Buttu X-Google-Original-From: Marco Buttu Date: Wed, 03 Jun 2015 14:10:58 +0200 Reply-To: mbuttu@oa-cagliari.inaf.it User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Everything is an object in python - object class and type class References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <48fc36e9-fa67-45d5-9864-0921b7e819ce@googlegroups.com> <556d931a$0$12991$c3e8da3$5496439d@news.astraweb.com> <1ad44d0f-8a98-4302-9391-51264aa258e5@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 03 Jun 2015 15:10:15 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433337016 news.xs4all.nl 2877 [2001:888:2000:d::a6]:52519 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91958 On 03/06/2015 13:08, BartC wrote: > Come on, we're trying to keep this simple. If we really want to keep it simple, we can take this starting point: http://en.wikipedia.org/wiki/Object_(computer_science) If we agree with the Wikipedia definition: ``In the class-based object-oriented programming paradigm, "object" refers to a particular instance of a class...`` than we can say in Python everything is an object, because everything is an instance of a class. And of course, object is synonimous for instance: >>> (1, 2, 3).foo Traceback (most recent call last): ... AttributeError: 'tuple' object has no attribute 'foo' -- Marco Buttu INAF-Osservatorio Astronomico di Cagliari Via della Scienza n. 5, 09047 Selargius (CA) Phone: 070 711 80 217 Email: mbuttu@oa-cagliari.inaf.it