Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.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; 'startup': 0.05; 'confuse': 0.09; 'object)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'type)': 0.09; 'python': 0.11; 'jan': 0.11; 'ignore': 0.14; 'subject:python': 0.14; 'obviously': 0.15; 'interpreter': 0.15; "guido's": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'troll': 0.16; 'wrote:': 0.16; 'creates': 0.18; '>>>': 0.20; 'trying': 0.22; 'object.': 0.22; 'am,': 0.23; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'this.': 0.28; 'rest': 0.28; '(it': 0.29; 'terry': 0.29; 'classes': 0.30; 'guys': 0.31; 'code': 0.31; 'core': 0.32; 'similar': 0.32; 'to:addr:python-list': 0.35; 'lists.': 0.35; 'except': 0.36; 'subject:: ': 0.37; 'rather': 0.38; 'received:org': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'decision': 0.61; 'us.': 0.62; "'object'": 0.84; 'confusing': 0.84; 'hardly': 0.84; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Everything is an object in python - object class and type class Date: Tue, 02 Jun 2015 12:23:19 -0400 References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <48fc36e9-fa67-45d5-9864-0921b7e819ce@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <48fc36e9-fa67-45d5-9864-0921b7e819ce@googlegroups.com> 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433262257 news.xs4all.nl 2883 [2001:888:2000:d::a6]:33752 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91856 On 6/2/2015 6:36 AM, Eddilbert Macharia wrote: > you guys are just confusing me, you are going in loops, Ignore the troll who is trying to confuse you by slandering the rest of us. I have been using python for 18 years, I believe. Current Python has a loop at the core >>> isinstance(type, object) True >>> isinstance(object, type) True For using python, you hardly need to know this. (It obviously was not true before 'object' was added in 2.2.) The interpreter creates this loop on startup with code similar to the following, except that it does so with classes rather than lists. >>> lob = [] >>> l0 = [] >>> l1 = [l0] >>> l0.append(l1) >>> l0 in l1 True >>> l1 in l0 True > and still i have understood ,what makes everything in python an object. Guido's decision to make python be that way. -- Terry Jan Reedy