Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; '"this': 0.03; '16,': 0.03; 'say,': 0.05; 'url:au': 0.05; 'assignment': 0.07; 'subject:PEP': 0.07; 'cursor': 0.09; 'formatting': 0.09; 'literal': 0.09; 'marking': 0.09; 'pages.': 0.09; 'target,': 0.09; 'cc:addr:python-list': 0.11; 'random': 0.14; "wouldn't": 0.14; 'bonus:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'host:': 0.16; 'names?': 0.16; 'notations': 0.16; 'separated': 0.16; 'url:92': 0.16; 'url:catid': 0.16; 'url:com_content': 0.16; 'wrote:': 0.18; 'properly': 0.19; 'things.': 0.19; 'url:article': 0.19; 'url:view': 0.20; 'example': 0.22; 'pages,': 0.22; 'proposed': 0.22; 'cc:addr:python.org': 0.22; '(by': 0.24; 'processor': 0.24; 'text.': 0.24; 'fairly': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'subject: : ': 0.26; 'header :In-Reply-To:1': 0.27; 'on,': 0.29; 'am,': 0.29; 'character': 0.29; 'words': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'about.': 0.31; 'bunch': 0.31; 'letter.': 0.31; 'text': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'consistent': 0.36; 'programming,': 0.36; 'method': 0.36; 'url:org': 0.36; 'should': 0.36; 'displays': 0.38; 'structure': 0.39; 'even': 0.60; 'first': 0.61; 'url:index': 0.63; 'our': 0.64; 'pick': 0.64; 'more': 0.64; 'different': 0.65; 'talking': 0.65; 'within': 0.65; 'between': 0.67; 'url:tinyurl': 0.69; 'guaranteed': 0.75; 'article': 0.77; "they'd": 0.84; 'url:php': 0.85; 'duke': 0.91; 'to:none': 0.92 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=KDb9wzhVZXR/XSirFTdM0MMwDZXS4UzX6A5iZCZk9UA=; b=dHecYSMBFdAEZ5VpUWiUU4avn8txJt9NNpyeujrMX7z81tq8FoXAnWie9lUtqoThdh bIt4u9c4tec9yBhqT9yHsb6/mIMAFNTCYmcZ+ohSW+kdYDWZZiue5wowQeIMBFptjA7k Ke7WO0c8iaDd0+haYANDwIcf0ksxBB9eB3XftM9mcqzSK7PStbcIH3nX+UJz9Cz95MUP O5I9dY6zQ+lMy+sdcjtP2BJtYJv0DbxRq3hi6JmW25wNk2vF6ZU29/JA5GzoVOJnvuP7 /yX3wUOCrox4hjjYbTJrQD1Lw7zlF92LGCF3n2kl2XctuPwyJXX7CRL2/0qD/unxZYmZ 9cuA== MIME-Version: 1.0 X-Received: by 10.52.64.204 with SMTP id q12mr2709vds.81.1400164961593; Thu, 15 May 2014 07:42:41 -0700 (PDT) In-Reply-To: <87y4y39ktc.fsf@elektro.pacujo.net> References: <5373f400$0$24922$e4fe514c@dreader36.news.xs4all.nl> <600f69c8-541f-4fae-a3db-4da33b776046@googlegroups.com> <87a9ajb36d.fsf@elektro.pacujo.net> <78ac407a-c429-4a7a-93c9-5d83e0f09cbb@googlegroups.com> <87y4y39ktc.fsf@elektro.pacujo.net> Date: Fri, 16 May 2014 00:42:41 +1000 Subject: Re: PEP 8 : Maximum line Length : 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.15 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400164964 news.xs4all.nl 2901 [2001:888:2000:d::a6]:38612 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71616 On Fri, May 16, 2014 at 12:29 AM, Marko Rauhamaa wrote: > An everyday example: a word processor displays the word "hello" with > "hel" in boldface and "lo" in italics. You put the cursor between the > l's and type a letter. Should it be in boldface or italics? Impossible to say, and one of the perpetual annoyances. Here's a web site that I host: http://gilbertandsullivan.org.au/index.php?option=com_content&view=article&id=92:2001-patience&catid=30:patience&Itemid=102 (Tiny URL: http://tinyurl.com/pphpkuk ) Why is "Lt Duke of Dunstable" different from all the other character names? (By the way, I just picked an article at random from the archive, and the first random pick had an example of what I'm talking about. It's fairly prevalent on that site.) Now, if this were hand-written HTML2, this sort of thing wouldn't happen; and, even better, if the structure and formatting were properly separated (as in my proposed web site redesign), they'd not only be guaranteed consistent within a page, but also *across* pages. Tagged text works well. In HTML pages, that means literal ; in programming, that's all our various notations and things. I wouldn't want to write code by writing a bunch of words and then marking "This word is an assignment target, this one is an object that you should find a method on, this one is the method name, and these ones are the arguments". I want to put = . ( ) to mark those. More efficient... MUCH more reliable. And, bonus: it's all text. ChrisA