Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'true,': 0.04; 'object)': 0.09; 'received:internal': 0.09; 'python': 0.11; '2.7': 0.13; 'subject:python': 0.14; 'message-id:@webmail.messagingengine.com': 0.16; 'object),': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'wrote:': 0.16; '(not': 0.20; 'class,': 0.22; 'object.': 0.22; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'parent': 0.29; 'language.': 0.32; 'class': 0.33; 'true.': 0.33; 'could': 0.35; 'to:addr:python-list': 0.35; 'instance': 0.35; 'skip:o 20': 0.35; 'but': 0.36; 'being': 0.36; 'there': 0.36; 'received:10': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.39; 'why': 0.40; 'even': 0.61; 'from:no real name:2**0': 0.61; 'skip:u 10': 0.62; 'header:Message-Id:1': 0.62; 'more': 0.62; "class's": 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=KZeSIlg19de0LhILpMxefKRBE78=; b=DlHQbM mfA/MwRmYrX8oTKDEQaOkJIYmySlZRHPUsXT9aRPUSjFnr7raR88JFHHG7Hibw9r Zo2CNleGL+5ZN12hn8/gLpraatpTysY5bQJP8FLE5THJOtAS8XYl6qrQKcxZlXVw CPY5poAuvhQtTeHjxgCuLwyoOx/Lp9R7vPRkE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=KZeSIlg19de0LhI LpMxefKRBE78=; b=rHfqZZLRpM9XCKR2SaKxkgQiW7QHpb0My2RHH38rWd0Vblf 9oI4CW7+4ZAgY50duk4LxlCZqhHq2Wt9wyANz+PT8HXR+JyvnYPzN/siCTvOmQzu OvQhONJ6Bbrsomld1BP/lKSyIAq5rNALWo+BUUPWlWYttMWgItuqtccd2ObE= X-Sasl-Enc: wOFacfSMlnRldqakW4WSzKWBB9ZAzgn25xBtdW/g+h+w 1433218426 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-073992ec In-Reply-To: References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <7f287dcf-8d52-4ab8-9768-88d1f75da269@googlegroups.com> Subject: Re: Everything is an object in python - object class and type class Date: Tue, 02 Jun 2015 00:13:46 -0400 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433218429 news.xs4all.nl 2894 [2001:888:2000:d::a6]:55442 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91782 On Mon, Jun 1, 2015, at 21:15, TheDoctor wrote: > 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. isinstance(type, object) is true because object is the parent class of type. issubclass(type, object) is also true, and that is why isinstance(int, object) is true. There is no more contradiction than in anything else being an instance of its own class, its parent class, that class's parent class, and ultimately... well, object. type in object.__subclasses__() is also true. type.__base__ is object. I could go on.