Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'ambiguity': 0.09; 'confuse': 0.09; 'instantiated': 0.09; 'object)': 0.09; "they've": 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'itself.': 0.11; 'subject:python': 0.14; 'interpreter': 0.15; '(everything': 0.16; 'anymore': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'wrote:': 0.16; 'integer': 0.18; 'string,': 0.18; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'are.': 0.22; 'int,': 0.22; 'object.': 0.22; 'am,': 0.23; '2015': 0.23; 'header :In-Reply-To:1': 0.24; 'object,': 0.27; 'message- id:@mail.gmail.com': 0.28; 'dictionary': 0.29; 'themselves': 0.29; 'function': 0.30; 'classes': 0.30; 'too.': 0.30; 'knows': 0.32; 'class': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'really': 0.35; 'created': 0.36; 'there': 0.36; 'monday,': 0.36; 'two': 0.37; 'subject:: ': 0.37; 'instead': 0.38; 'difference': 0.38; 'tue,': 0.38; 'building': 0.38; 'is,': 0.38; 'data': 0.40; 'some': 0.40; 'term': 0.60; 'here.': 0.61; 'more': 0.62; 'details': 0.63; 'you.': 0.64; 'truth': 0.79; 'chrisa': 0.84; 'crowd': 0.84; 'to:none': 0.90 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:cc :content-type:content-transfer-encoding; bh=WPhaBPcbIWCJCi8cDSli5W9tIGNrtFIy0+pHp68yowc=; b=NTOsky0f8vTqWKdRhWB8ocwbQMSVcx0sQUIMEkPVIC5fpbTtm8qqfdO6Aym/NhDA4d IkqkiITUHCjpoU5gM2M7AXMBYhVZdVpcxGpIY6O0KwAJCYLrOpJf5CszR/BUaE0eS1// lLZgNp29oJiTZhgxfQoGr3rpOylNYsVZOHCfNNvqI4XqvBNpqSLPdlGTs2c5+Qc2gPnL CL8SJuAt8iII5Y4S+Kzg+DnDFUGcLjvxsQ7OMDbTqQPmSAdslOeFg58Iqs6n5y7nV4lu uNXheORwUdPbJjA2SNW2qHjFtXbrLqZRkmCTcpSHv73of1ILfO2vAz7JfMAg6B6WNpPH JypQ== MIME-Version: 1.0 X-Received: by 10.42.154.65 with SMTP id p1mr18069210icw.26.1433205171092; Mon, 01 Jun 2015 17:32:51 -0700 (PDT) In-Reply-To: References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <7f287dcf-8d52-4ab8-9768-88d1f75da269@googlegroups.com> Date: Tue, 2 Jun 2015 10:32:51 +1000 Subject: Re: Everything is an object in python - object class and type class From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433205179 news.xs4all.nl 2941 [2001:888:2000:d::a6]:56090 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91737 On Tue, Jun 2, 2015 at 10:24 AM, TheDoctor wrot= e: > On Monday, June 1, 2015 at 7:03:49 AM UTC-5, Eddilbert Macharia wrote: >> I think i kind of understand now. >> >> Instead of python having data types like int, string, e.t.c it has two p= rimitive types which are class type and class object which are created by p= ython interpreter during its setup .using this two classes python is able t= o create some more data types > > Eddibert, don't let this crowd (Terry, Stephen, et al.) confuse you. The= y are as confused about it as you are. > > The truth is, that they've told a lie to themselves (everything is an obj= ect) to hide some details FROM THEMSELVES in their model. They climb a lad= der of ambiguity anytime there's a new problem in their model and call it a= "type", or they pull out the "metaclass" term (because no one really knows= that that is, so they feel *pretty* safe). > > A type is not an object in the same way an instantiated type is an object= -- anymore than a blueprint for a building is the building itself. And don't let dreamingforward confuse you, because he is flat-out wrong. An integer is an object, because you can manipulate it as one. A function is an object. A dictionary is an object. And a type is an object too. There is no significant difference here. ChrisA