Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Why not allow empty code blocks? Date: Tue, 26 Jul 2016 03:26:22 +1000 Lines: 37 Message-ID: References: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <20160723082947.7cae8bd1@imp> <87fur0a44p.fsf@elektro.pacujo.net> <20160723095441.29562c54@imp> <57939373$0$1586$c3e8da3$5496439d@news.astraweb.com> <85a8h6qymv.fsf@benfinney.id.au> <436abc76-29e8-4964-859d-b1223a1c7528@googlegroups.com> <654dbafd-6ac8-4f96-b7c5-03200454aeca@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de z2zF7c4ivc7ro7xvEuGFoQh//EK6ThF2ysUGLIS+TsfQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'nicely': 0.07; 'subject:code': 0.07; 'cc:addr:python-list': 0.09; 'prefixes': 0.09; 'subject:Why': 0.09; 'worse': 0.09; '\xe2\x80\x94': 0.09; 'subject:not': 0.11; '2016': 0.16; 'frame,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'keys:': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 's/he': 0.16; 'stuff.': 0.16; 'subject:allow': 0.16; 'wrote:': 0.16; 'gui': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'keys': 0.22; 'rid': 0.22; 'am,': 0.23; 'specially': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'rest': 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'said,': 0.27; 'looks': 0.29; 'regular': 0.29; 'url:wikipedia': 0.29; 'url:wiki': 0.30; 'window': 0.30; "can't": 0.32; 'embedded': 0.32; 'though,': 0.32; 'useful': 0.33; 'common': 0.33; 'operations.': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'primarily': 0.35; 'quite': 0.35; 'something': 0.35; 'skip:i 20': 0.36; 'url:org': 0.36; 'cases': 0.36; 'monday,': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'say': 0.37; 'doing': 0.38; 'itself': 0.38; 'no,': 0.38; "won't": 0.38; 'wrong': 0.38; 'building': 0.38; 'end': 0.39; 'means': 0.39; 'url:en': 0.39; 'system.': 0.39; 'where': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; 'world': 0.64; 'deeply': 0.64; '26,': 0.72; 'jul': 0.72; '"it': 0.84; 'chrisa': 0.84; 'lacks': 0.84; 'people;': 0.84; 'utc+5:30,': 0.84; 'to:none': 0.91; 'cua': 0.91; 'proudly': 0.91; 'taught': 0.97 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:cc :content-transfer-encoding; bh=3Gu04b+7XWLjR+BVdcz2FBjX8velyOdGSeGgNnbqsZk=; b=cTg9nuIXy2ZOLRrCOfEhZcPNNDXRMOIBiDNjrSj8HBns3OxKcxljUunVNcIRxaEF7H nmFWuFUqDkxNpuKRYkXEXQFvColDthlan18HAOiHAART1rOrYcu5WP0VmrOSV8T9FP3X E/1A/O6UVbAIYnkWkrtjImjO8I1yVWsQWROtchMjQDYZ7XxDkvzPAJXFJ2e8jeAirBCe wzzdCbzi7/FDpeua8NkeRNzbTHd8YnodclaP3SKQOFPuy3MPLLJJ6oz3aJ9kHhaoqm+m y7ULKSQubWU9hjr8nFCpKvlt7v3l+omTC/94C8ZvNShbIUK2C1o0rZM5SBqcGgD8deMs yM/Q== 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:cc:content-transfer-encoding; bh=3Gu04b+7XWLjR+BVdcz2FBjX8velyOdGSeGgNnbqsZk=; b=BmQ5thZEbhcKxUT2ss6qwiWuCSa5SJjqESPqr0t1uik/pXQxZh3CK6DbfICaeP+1pi ZADsIgUwBsBBfm0xBeJMhtpRGX70KCp5aLHNeuMW1aLeCtif+A3Qr2pz/Xb68z+9mPF9 Naihy+jYDooTTGx1alWYCewa9Z5OwA07+zaAmApfHVhC0Qg6odBFq52EZTA3vwjAGJzM pokc9ylJjvzHxFKfIjNIc9EpPXeeFePU6ERLJH094hbkNVC8wGpVAinV/LYaDooyHZWs U6kg4ksYbt6VJclgI06/K3QxxlgqApi43o8Yav1bQLhQLszlzmWVwpICzKcuKF9zWDCw ylgQ== X-Gm-Message-State: AEkoouvPMKvb44GZhRke8TABPRp79ky6fmgxm9sAs+HMeZH6qnq+ODjVoFy09LLn4PICMU9dHfaAROedz+5LHA== X-Received: by 10.28.142.135 with SMTP id q129mr20640478wmd.41.1469467584341; Mon, 25 Jul 2016 10:26:24 -0700 (PDT) In-Reply-To: <654dbafd-6ac8-4f96-b7c5-03200454aeca@googlegroups.com> 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: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <20160723082947.7cae8bd1@imp> <87fur0a44p.fsf@elektro.pacujo.net> <20160723095441.29562c54@imp> <57939373$0$1586$c3e8da3$5496439d@news.astraweb.com> <85a8h6qymv.fsf@benfinney.id.au> <436abc76-29e8-4964-859d-b1223a1c7528@googlegroups.com> <654dbafd-6ac8-4f96-b7c5-03200454aeca@googlegroups.com> Xref: csiph.com comp.lang.python:111869 On Tue, Jul 26, 2016 at 3:11 AM, Rustom Mody wrote: > On Monday, July 25, 2016 at 10:32:45 PM UTC+5:30, Chris Angelico wrote: >> On Tue, Jul 26, 2016 at 2:54 AM, Rustom Mody wrote: >> > The whole world uses cua keys: >> > https://en.wikipedia.org/wiki/IBM_Common_User_Access >> > [emacs] proudly sticks to what it was doing pre-cua >> >> Sadly, the "whole world" doesn't. Windows itself lacks quite a few of >> the CUA keys (ask a Windows user how to move a window with the >> keyboard, and s/he won't say "Alt-F7"), and some Windows applications >> make this even worse (Adobe Reader egregiously so - you can't even use >> Ctrl-Ins to copy to the clipboard, despite all the rest of Windows >> supporting it). > > Ok I was speaking in-a-manner-of-speaking -- in two ways > All means most > Cua means the most common cua-keys =E2=80=94 C-x C-c C-v > of which the first two specially are so deeply embedded into emacs as pre= fixes > for 100s of other functions that its hard to change without significant u= pheaval Wrong - CUA's standard keys are Shift-Del, Ctrl-Ins, Shift-Ins for the same operations. The alphabetics are not part of the CUA standard. That said, though, most applications support both - primarily because most GUI widgets are built to support both, and applications are taught to respond to signals like 'paste'. This is one of those cases where building your own is both way more work AND way less useful to people; the same thing often happens when a program decides to be "cute" with its UI and get rid of the title bar and regular frame, painting its own window borders and stuff. It's a lot of work to make that look decent, and then you end up with something that doesn't play nicely with the rest of the system. You'd better have a really good justification for that - and no, "it looks pretty" is NOT that justification. ChrisA