Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.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; 'python.': 0.02; 'subject:not': 0.03; 'true,': 0.05; 'class,': 0.07; 'instance.': 0.09; 'objects,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:instance': 0.09; 'python': 0.11; 'itself.': 0.14; 'finney': 0.16; 'nevertheless': 0.16; 'objects.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:)?': 0.16; 'subject:object': 0.16; 'those,': 0.16; 'all.': 0.16; 'do.': 0.18; 'header:User-Agent:1': 0.23; 'header:X -Complaints-To:1': 0.27; 'appear': 0.29; 'correct': 0.29; 'rest': 0.29; "doesn't": 0.30; 'claiming': 0.31; 'object.': 0.31; 'writes:': 0.31; 'class': 0.32; 'subject: (': 0.35; 'agree': 0.35; 'classes': 0.35; 'objects': 0.35; 'but': 0.35; 'introducing': 0.36; 'object,': 0.36; 'words,': 0.36; 'ben': 0.38; 'to:addr :python-list': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'impact': 0.61; "you've": 0.63; 'happen': 0.63; 'special': 0.74; 'yourself': 0.78; 'received:125': 0.84; 'tied': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: An object is an instance (or not)? Date: Wed, 28 Jan 2015 12:00:58 +1100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:+4iOVokE6tTaF9NdD1d2UN/VZdE= 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422406856 news.xs4all.nl 2831 [2001:888:2000:d::a6]:51079 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84696 Mario Figueiredo writes: > It is true that a class object is an instance of 'type'. But this is a > special type (can't avoid the pun). Nevertheless it is a class, and can do everything that classes do. And every class is an object, and can do everything that objects do. You seem to agree with those, so please stop claiming that classes are not objects. Python classes are always objects, and always have been. > A class object is not an instance of the type it implements. You keep introducing hurdles that are irrelevant. Yes, a class is not an instance of itself. That doesn't impact the fact a class is an object. > That is what I mean by an object that isn't an instance. That's incoherent. It's an instance of a class, and simultaneously is not an instance? > In other words, the object know as "Sub class" is not an instance > object. True, it is an instance of the object 'type'. You've tied yourself in knots with concepts that are not coherent, and even if they were do not appear to be relevant to Python. -- \ “Very few things happen at the right time, and the rest do not | `\ happen at all. The conscientious historian will correct these | _o__) defects.” —Mark Twain, _A Horse's Tale_ | Ben Finney