Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'cc:addr :python-list': 0.10; 'subject:python': 0.14; 'wed,': 0.15; '(also': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'wrote:': 0.16; 'language': 0.19; 'variable': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'object.': 0.22; 'bit': 0.23; '2015': 0.23; 'elements': 0.23; 'header:In-Reply-To:1': 0.24; 'developing': 0.25; 'mostly': 0.27; 'message-id:@mail.gmail.com': 0.28; "i'm": 0.29; 'function': 0.30; 'becomes': 0.31; 'certainly': 0.31; 'trouble': 0.31; 'received:google.com': 0.34; 'instance': 0.35; 'list': 0.35; 'subject:: ': 0.37; 'aspects': 0.37; 'stuff': 0.38; 'pm,': 0.39; 'called': 0.40; 'some': 0.40; 'back': 0.61; 'it!': 0.64; 'chrisa': 0.84; 'to:none': 0.90 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=/m/4n8Tk2Xrgy+ibfrx0L4he9XK5jLEuQNu7GEZbCl8=; b=FbIf6ni7uG+8JVVgOZaDhs9i3i/6pLPR8Ad1xu18tj4thFNAXRhgvNdOurWAzNT7Au 2M4ksc7CLzNlsB93LeEOLCyUnT/bOziZYVC7ILMXelbe4x6556j6rum4Ol/SaTPv16MJ edNGEW1sQqOR6eGX/FG/Uz67zs3uMaBzft1p1C7xdUQ6bZN6cW8nLGwEMJEsqL3Fpx/M B2mdQMEVp+Ho5Ol/U/RK/LsoEpsyjkxxAZayeyhXVawuLKVp+ZCoWp78HFZghGhu3syg 0LUk1i+iYzKYPA46zne/tDodKIQIrFDNZ8O107NRrseg0uHFgiBA4xsINU8klcSGaYYN FEzQ== MIME-Version: 1.0 X-Received: by 10.50.176.228 with SMTP id cl4mr26369496igc.2.1433327909804; Wed, 03 Jun 2015 03:38:29 -0700 (PDT) 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> <1ad44d0f-8a98-4302-9391-51264aa258e5@googlegroups.com> Date: Wed, 3 Jun 2015 20:38:29 +1000 Subject: Re: Everything is an object in python - object class and type class From: Chris Angelico Cc: "python-list@python.org" 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433328294 news.xs4all.nl 2832 [2001:888:2000:d::a6]:34518 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91941 On Wed, Jun 3, 2015 at 8:20 PM, BartC wrote: > I have a lot of trouble with this stuff too, as my ideas are decidedly > old-fashioned. (Also I'm developing a language with some OO aspects without > ever having used OO!) > > But, it is mostly just jargon. If you go back to using 'variable' and > 'type', then it becomes a bit easier: > > * A variable is an instance of some type. > > And, that's pretty much it! If I have a list called "stuff" with three elements in it, is "stuff[1]" a variable? What if I return that list from a function called get_stuff()? Is get_stuff()[1] a variable? Because in Python, get_stuff()[1] is certainly going to be an object. ChrisA