Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'argument': 0.04; 'plenty': 0.07; 'properly.': 0.07; 'versions.': 0.07; 'python': 0.09; '__future__': 0.09; 'tab': 0.09; 'width.': 0.09; '"from': 0.16; 'blocks': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'indent': 0.16; 'lexical': 0.16; 'still,': 0.16; 'tabs': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'import': 0.21; 'java': 0.21; 'received:209.85.214.174': 0.21; 'aspect': 0.22; 'fixing': 0.22; 'rapidly': 0.22; 'work,': 0.22; "i'd": 0.22; 'statement': 0.23; "i've": 0.23; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'wonder': 0.27; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'rest': 0.28; "i'm": 0.29; 'file': 0.32; 'structure': 0.32; 'could': 0.32; 'to:addr :python-list': 0.33; 'know.': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'characters': 0.36; 'visual': 0.36; 'display': 0.36; 'editor': 0.37; 'why': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'growing': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'release': 0.39; 'space': 0.39; 'header:Received:5': 0.40; 'matter': 0.61; 'subject:, ': 0.61; 'first': 0.61; 'dead': 0.62; 'more': 0.63; 'within': 0.64; 'jul': 0.65; 'press': 0.71; 'introduce': 0.80; '("this': 0.84; 'kat': 0.91; '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=fM6tkQ4S/NsT2Wou4SBso9De85YCLe4NFW+Zs1jweT4=; b=pKF6GMSMxW0qzHXE63+O9M9R1sikzYBiPGuwvMQCnA7DhmKoR7Rs743PpgUaVnuVva ZL4p0mSwIdxrrb0YxSFCkEkk1RVpotnv40o/MR+fuPNT3XfAHwUp04CBvWLYGV5AXSbA PeSfYNW2M+y2y+5JqHkA1OLFgSvzr5HW9MK2aToVlLiwjUIHhk8lu9IBCFe09Us69AD5 jnDNb77t8+ItayE6ryWs6auNqhw8ENnmkcEsWCAUA1N/dTISL92Y+uSD4ILb/pi+WSBI KdUnRTnOw0EilaneQgaluVkRt6OsUoAmLkfpGyEqF/jnprcnz5psOSwQcV6TnpuBORZF 1fHA== MIME-Version: 1.0 In-Reply-To: <-OKdnclIyZIjUZvNnZ2dnUVZ8k-dnZ2d@bt.com> References: <3vnfd9-343.ln1@satorlaser.homedns.org> <-8SdnVrXGqie25jNnZ2dnUVZ7qKdnZ2d@bt.com> <-OKdnclIyZIjUZvNnZ2dnUVZ8k-dnZ2d@bt.com> Date: Thu, 19 Jul 2012 01:09:35 +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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342624178 news.xs4all.nl 6933 [2001:888:2000:d::a6]:55705 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25576 On Thu, Jul 19, 2012 at 12:48 AM, Lipska the Kat wrote: > hmm, I've been using tabs ... still, why use one key press when you can use > 4 ;-). Actually I quite like this aspect of Python, it's rapidly growing on > me. Wonder if I could introduce this in a future release of Java ... nah, > I'd be dead within a week %-( First let's get Python working properly. The "from __future__ import braces" statement still doesn't work on any of the released versions. After that, we can consider fixing Java to do the converse. We must meet half way, you know. As to tab vs spaces: I'm a fan of tabs, myself. There was an argument over the matter last year at work, and we settled on tabs because the one guy who reckons 1-2 space indent is plenty was then able to just set his editor to two-space tabs, and the rest of us could use a more reasonable width. Using tab characters in the file gives this flexibility. It separates the lexical structure ("this is three blocks in") from the visual display ("draw these glyphs 35mm from the left margin"). ChrisA