Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'true,': 0.05; 'failing': 0.07; 'received:internal': 0.09; 'sub': 0.09; 'subject:instance': 0.09; 'type,': 0.09; 'jan': 0.12; 'assume': 0.14; 'message-id:@webmail.messagingengine.com': 0.16; 'object)': 0.16; 'objection': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:)?': 0.16; 'subject:object': 0.16; 'type)': 0.16; 'wrote:': 0.18; 'trying': 0.19; '>>>': 0.22; 'instead.': 0.24; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "i'm": 0.30; 'object.': 0.31; 'class': 0.32; 'received:66': 0.35; 'subject: (': 0.35; 'instances': 0.36; 'words,': 0.36; 'should': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; "you're": 0.61; 'header:Message-Id:1': 0.63; 'name': 0.63; 'refer': 0.63; 'therefore': 0.72 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=mesmtp; bh=4Y2MOL1299fExigNJ9W/JJvA97Q=; b=B4/kaG uqwgck6hmrr8t2rMkyNJWheR8S3GkbzJKEpzkxCYxf1dpP5PrMVpTSlJsXOLYrtm L0PqEf69U2/3QnSGwJGzYhCtdPViPiByFUtlPz6xkkDBpFetcagRVHi6w270akcH hP0saPC1Ekit92LL8VJOSjs65j99QHkkWnDm4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date:in-reply-to:references; s=smtpout; bh=4Y2MOL1299fExigNJ9W/ JJvA97Q=; b=QjOLZPL0rFFH/1dgY8Z/TU8ShZmbS+dJSjQthgmTEpw6SInEAmKS fnVGLzlF6RpguXpsdT0e9no92Ro70Bnj5vzextj6Lo1429QZlX6G3zfOtBmoRJmy xKXDOKF2YRlX+m7edSrf9h7ldyRCZnJwckIafRb6WJ90qz9C6d9/6hs= X-Sasl-Enc: zC+QnDUd43Y/OeIsmk9lKXXk0wb8Qj/czgG18n4t3UhG 1422423887 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-46f3f2c7 Subject: Re: An object is an instance (or not)? Date: Wed, 28 Jan 2015 00:44:47 -0500 In-Reply-To: References: 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422423889 news.xs4all.nl 2830 [2001:888:2000:d::a6]:36438 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84716 On Tue, Jan 27, 2015, at 23:47, alex23 wrote: > On 28/01/2015 10:24 AM, Mario Figueiredo wrote: > > In other words, the object know as "Sub class" is not an instance > > object. True, it is an instance of the object 'type'. > > >>> class Foo: > ... pass > ... > >>> isinstance(Foo, type) > True > >>> isinstance(Foo, object) > True > > A class is an object that is an instance of the class type. I'm still > failing to see what distinction you're trying to make here. I think his objection is to the use of the phrase "'Sub' object" to refer only to instances of the Sub type, when 'Sub' is the name of the type object itself and therefore (he thinks) "'Sub' object" should refer to it instead. (I can only assume he wants "'x' object" for x = Sub().)