Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'python': 0.09; 'integers': 0.09; 'distinction': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integers,': 0.16; 'java.': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'java': 0.21; 'received:209.85.214.174': 0.21; 'object.': 0.22; 'oriented': 0.22; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'to:addr:python-list': 0.33; 'point.': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'subject:, ': 0.61; 'between': 0.63; 'more': 0.63; 'jul': 0.65; 'actually,': 0.84; 'subject:skip:E 10': 0.95 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:to :content-type; bh=oo5FtlwXj0IegPZ0ClXz8cyXk+5sX49SbKv/wY1qZ0g=; b=AJXEOtuwxZRnqMU5pRBWzVo6FOTdgz5/w9sOFwOkm7pPp3ewq6PyoSDwP4ecF8ih5A qt5hkz18+prhNAnjIt159QsgR4OpPl0EnYftXH7c1qEtWmUxwYDaJ+JRC5aH5b24ZCHQ 3PaJwjm7PzrorBa1YzkVB3QUr12GUqEmxrSgsm1PfiDrxrZXfb6+ga6DaCDXTmx00IQ6 o8T6n34qMIyDiKd49fQk264G+n6oD54tDiTV1Q2ifBW1zQSNIFLPk2LW1VPCW5dugmnj 1fqp8dPpSQzA2gFg6zoiwgTqdgskGmUJ9o5QbBWE3jzTA/0KSQXYdP1N2meX647gO0Vm 1Faw== MIME-Version: 1.0 In-Reply-To: <5007615b$0$1756$c3e8da3$76491128@news.astraweb.com> References: <3vnfd9-343.ln1@satorlaser.homedns.org> <-8SdnVrXGqie25jNnZ2dnUVZ7qKdnZ2d@bt.com> <5005A103.9050802@stoneleaf.us> <5006b48a$0$29978$c3e8da3$5496439d@news.astraweb.com> <5007615b$0$1756$c3e8da3$76491128@news.astraweb.com> Date: Thu, 19 Jul 2012 15:09:43 +1000 Subject: Re: Encapsulation, inheritance and polymorphism From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342674586 news.xs4all.nl 6867 [2001:888:2000:d::a6]:51850 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25605 On Thu, Jul 19, 2012 at 11:22 AM, Steven D'Aprano wrote: > On Thu, 19 Jul 2012 01:04:50 +1000, Chris Angelico wrote: > >> Python isn't object oriented in the way Java is ("EVERYTHING has to be >> in a class! Look, it's all OO now!"). > > Actually, Python is more object-oriented than Java. In Python, everything > is an object. We have no distinction between boxed and unboxed integers, > for example -- all integers are boxed, always. That was my point. Less hype about OO but everything really is an object. ChrisA