X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 195.154.70.45 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!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1a.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '[0,': 0.09; 'integers': 0.09; 'objects.': 0.09; 'subject:python': 0.14; "'test',": 0.16; 'containers': 0.16; 'dictionaries': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'typeof': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'tuples': 0.22; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'var': 0.27; 'message- id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'objects': 0.29; 'putting': 0.31; 'problem': 0.33; 'received:google.com': 0.34; 'lists': 0.34; 'to:addr:python-list': 0.35; 'really': 0.35; '(and': 0.36; 'subject:: ': 0.37; 'tue,': 0.38; 'end': 0.39; 'pm,': 0.39; 'to:addr:python.org': 0.39; 'dr.': 0.69; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=RAJj7oK13lj5QNlZvkTXYnwXy9MhqvDSs9Pkp31cBT8=; b=tfVi9TWhz9kLL1MaDVz+V2lje9jS4Xv88deq8l6c5esiZ88NaMY1LAiniO2jUHGpFV z+4Ejppjx/xRO2QKDlcpdcIlGjr1hGnfaO42uo3nwWTbsXjLqAaBPPvoVw4fLWcZ20Gw Awly35Et+YB7g/gslJqOG0lC5+vrJ212BiaK6gZo+hTzeHd65rsqM/1BLAsNUyr1lRUx mLdIF1Fdo9cR9fOmDO+flNLw6BtBI4qIpAQoETeR4655Yz8koG4BobWmO4WKSF6D5lsU fOkE4oSWW0P40fnozV14Al5Lv0x/cMOcgV+v2sAkQl/AiXl5/5ARFTO1dTtJZE5hVDYT Utvw== X-Received: by 10.43.65.19 with SMTP id xk19mr37210418icb.20.1433273863307; Tue, 02 Jun 2015 12:37:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <48fc36e9-fa67-45d5-9864-0921b7e819ce@googlegroups.com> <556d931a$0$12991$c3e8da3$5496439d@news.astraweb.com> <556de143$0$13009$c3e8da3$5496439d@news.astraweb.com> <%9mbx.608935$JH2.445461@fx11.am4> From: Ian Kelly Date: Tue, 2 Jun 2015 13:37:02 -0600 Subject: Re: Everything is an object in python - object class and type class To: Python Content-Type: text/plain; charset=UTF-8 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433273866 news.xs4all.nl 2839 [2001:888:2000:d::a6]:58343 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91887 On Tue, Jun 2, 2015 at 12:47 PM, Jon Ribbens wrote: > On 2015-06-02, Dr. Bigcock wrote: >> It doesn't really do anything. No one uses integers as objects. >> (Any dissenters?) > > Yes. *Everyone* uses integers as objects. Containers such as > lists and dictionaries and tuples etc contain objects. If > integers weren't objects then you wouldn't be able to put them > in containers (and you'd end up with Java). Javascript has no problem putting primitives into containers. js> var arr = [0, 'test', new Object()]; js> typeof arr[0] "number" js> typeof arr[1] "string" js> typeof arr[2] "object"