Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Oscar Benjamin Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Wed, 20 Apr 2016 10:24:08 +0100 Lines: 44 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <5716595b$0$1585$c3e8da3$5496439d@news.astraweb.com> <3d95437c-6427-46d2-8e9f-470f121194cd@googlegroups.com> <20160419124321.361751dc@bigbox.christie.dr> <1461092090.2638611.583593041.7C981FAD@webmail.messagingengine.com> <5716dda3$0$1621$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de gJiKmCmMaWWNivDLGDNfGwnlrkhZKmWSletiD3qTpWwg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'else:': 0.03; 'column': 0.07; 'seemed': 0.07; 'subject:PEP': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'causing': 0.13; 'def': 0.13; 'wed,': 0.15; '2016': 0.16; 'cc:name:python list': 0.16; 'constructs': 0.16; 'etc?': 0.16; 'fond': 0.16; 'java.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'scratch': 0.16; 'structure.': 0.16; 'wrote:': 0.16; 'of.': 0.18; 'shape': 0.18; 'gui': 0.18; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'correctly.': 0.22; 'code,': 0.23; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'looks': 0.29; 'spaces': 0.29; 'code:': 0.29; "i'm": 0.30; 'classes': 0.30; 'code': 0.30; 'e.g.': 0.30; 'editor': 0.34; 'structure': 0.34; 'received:google.com': 0.35; 'next': 0.35; 'could': 0.35; 'text': 0.35; 'received:209.85': 0.36; 'possible': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:209': 0.38; 'why': 0.39; 'subject:the': 0.39; 'some': 0.40; 'entire': 0.61; 'different': 0.63; '20,': 0.66; 'color': 0.67; 'oscar': 0.84; 'reinforce': 0.84; 'x):': 0.84; 'colour': 0.91; 'graphical': 0.91; 'tied': 0.93 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 :cc; bh=ZSPAAjNpDC2zB3CoJDXGGQu7JIPTQ3heAqSpU/X49lo=; b=n9+e6ASARjmAeXofHA7vr8J1OCkpMoAnBI9DwpNBXZEf+Cwi4LopcVLPJbA+u5B/// 6y87gRZjKWdgjiuhDS1xahkPscLZGD+PiXcZNO67SONdPL62wbKb05Aq3bIWdZrhq7i0 QKsmz1T625r/AsMf3Wl60g1KyYOQ2/DKr54mqUIKh8SI9ISIgZvUbyRQT7kVY6tf2SJS pIn9OQTW9reuMULGzv/P7QBmvTvmfRykW74HyRCnKEcDCVpzjhO5ti+Xv/e0jxFX0CeV dM04NoLH+lIkmhsRXf2h6NPCveyAf6/25+jlzps6/D1epAKOfiHPV33G2MWFe3s1UPZc BODw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZSPAAjNpDC2zB3CoJDXGGQu7JIPTQ3heAqSpU/X49lo=; b=b52b5zlDK1RrEDO4yFlBxNNqLwzYJBIa6JDhexPNVOPe9ewSIA3NGIMceb7w4+7wlk 0ET5S0jH0FjyE8tOmPuCzxd6pMvvVFSbWQf7CZ/q99EjDIr2dpy+YDGUeLkUNu+qj7Y7 A/Ac8AFgyptGbGFpXy4CeT9AWADpcnbwH8yAIJ65++WsRzKAo0X1tXfX1FU85IDH9hUp QxhzMD3+2QINyJO9nBW1x7S5ptrN02a9AJfYuo5CgrBaRBiUA7xITL3s7wfIYUxWfeQd IVmoiEQ6k2YP7hjoB+wcMpkstGXJHtgMWpXW5Tl1HYtQY+bDAc4mkJobGbs1X2dk5or+ 9qZQ== X-Gm-Message-State: AOPr4FX/7FhZoF5Jk6Y0REkWPsQRWqt9hSIso3AFeHSoSWE+2QwR66h57wAEqwPU74UdIapYEXW6WqjrOHHXfw== X-Received: by 10.25.149.144 with SMTP id x138mr3180405lfd.88.1461144268061; Wed, 20 Apr 2016 02:24:28 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <5716595b$0$1585$c3e8da3$5496439d@news.astraweb.com> <3d95437c-6427-46d2-8e9f-470f121194cd@googlegroups.com> <20160419124321.361751dc@bigbox.christie.dr> <1461092090.2638611.583593041.7C981FAD@webmail.messagingengine.com> <5716dda3$0$1621$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:107401 On 20 April 2016 at 07:08, Terry Reedy wrote: > On 4/19/2016 11:41 PM, Chris Angelico wrote: >> >> On Wed, Apr 20, 2016 at 1:23 PM, Terry Reedy wrote: >>>> >>>> It kinda looks like Hypertalk syntax, which some of you may remember I'm >>>> exceedingly fond of. There's no reason why a GUI editor couldn't display >>>> Python code using such "building block" structure. E.g. indented blocks >>>> could use colour and shape cues to reinforce the structure of the code, >>>> just as Scratch does. >>> >>> >>> >>> That is an interesting idea. Perhaps I have been stuck in either/or >>> thinking -- either graphical or textual. With tk Text (IDLE), it would be >>> possible to tag each (4-space) indent with a color for the compound >>> statememt keywork causing the indent. >>> >> >> Interesting indeed! Tell me if I've understood you correctly. You'd >> display this code: >> >> def func(x): >> for n in range(1, x): >> while n < x: >> if n % 2: >> n = (n + 1) * 3 / 2 >> else: >> n = n * 2 + 3 >> >> with stripes of colour, with the entire first column of spaces all >> tied to the "def", and then the next block of four tied to the "for", >> etc? > > > Exactly. Take a look at bluej which is for Java. It surrounds different constructs with different coloured rectangles. It also provides UML-ish views of the classes in a project. My students seemed to like it. -- Oscar