X-Received: by 10.66.158.137 with SMTP id wu9mr11182434pab.17.1433207715461; Mon, 01 Jun 2015 18:15:15 -0700 (PDT) X-Received: by 10.182.20.108 with SMTP id m12mr149206obe.28.1433207715393; Mon, 01 Jun 2015 18:15:15 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h15no1832596igd.0!news-out.google.com!n7ni50440igk.0!nntp.google.com!h15no1832586igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Mon, 1 Jun 2015 18:15:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.39.108.167; posting-account=_mq9AwoAAADE_DU6vx1SR9Jw8c-yNCiv NNTP-Posting-Host: 65.39.108.167 References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <7f287dcf-8d52-4ab8-9768-88d1f75da269@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Everything is an object in python - object class and type class From: TheDoctor Injection-Date: Tue, 02 Jun 2015 01:15:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:91753 On Monday, June 1, 2015 at 7:33:11 PM UTC-5, Chris Angelico wrote: > And a type is an > object too. There is no significant difference here. Let me make this clearer to you, Chris, because I don't want you to have to= suck it too, like the rest of this community. A type is not an object. You see it as one, because you are MENTALLY lexin= g your own code on the screen. But python does not define a type. It defi= nes certain primitives, like strings and integers. But it doesn't define w= hat an OBJECT is. So you and everyone else are beating around the bush try= ing to define something that the LANGUAGE ITSELF doesn't define. So, don't= make a claim about it. =20 In Python 2.7 type(type) is type (not object), but isinstance(type, object)= is true -- so it is ambiguous, even contradictory, in the language. Boom. Suck it. Mark