Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subsequent': 0.05; 'subject:Python': 0.06; 'steve': 0.09; 'converts': 0.09; 'python': 0.11; 'language.': 0.14; 'question.': 0.14; 'aligned.': 0.16; 'beating': 0.16; 'braces,': 0.16; 'cleaner': 0.16; 'code?': 0.16; 'delimit': 0.16; 'delimiter': 0.16; 'delimiters': 0.16; 'marker': 0.16; 'parentheses': 0.16; 'unambiguous': 0.16; 'wrote:': 0.18; 'starts': 0.20; 'written': 0.21; 'to:name:python-list@python.org': 0.22; 'header:User- Agent:1': 0.23; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'correct': 0.29; 'see,': 0.30; 'strongly': 0.30; 'code': 0.31; 'easier': 0.31; 'lines': 0.31; 'indentation': 0.31; 'lot.': 0.31; 'view.': 0.31; 'probably': 0.32; 'checked': 0.32; 'languages': 0.32; 'thanks!': 0.32; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'subject:New': 0.37; 'so,': 0.37; 'others.': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'space': 0.40; 'how': 0.40; 'easy': 0.60; 'new': 0.61; 'more': 0.64; 'charset:windows-1252': 0.65; 'believe': 0.68; 'beat': 0.68; 'importantly,': 0.68; 'belt,': 0.84; 'horse': 0.84; 'simmons': 0.84; 'dozen': 0.91; 'notion': 0.91; 'why?': 0.91; 'wanting': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=5yUy+3r2D6BVKDMqYJTIO4El/Tid2Q5wRV58xgX0d4Q=; b=IAyYc7QJ4e/XM/gRqG3++OGub1kASwRvVB2YMlKv8zJNQ8qcrrO0lBXKYPRVumbdu+ E2rH1S57coRX2eQwQOJaYJ7SyiXFhOAvaDqPBDzjNHMvHa1VFzzKxJ6pURzgk/hAxoxm SvLCt6NVKjxgm5Mi1GMokQX7eyKjQlbum3vO22/5OZ7ZOobzHJjRr3dpX0I8BTxIsNy5 +Gb1MgLsego63A6RBAqTwtj8ypZ2UVFBYXbLoHJ70KIlSVeqR9/oGtO5OTc77IEhi5v7 q02fZJaqxT8CyoUizfa9w3/lYhNmEUeFaGYL+yg0P//ny0Hazoef24rFAIN/B6qSfzwT nzcw== X-Received: by 10.180.101.98 with SMTP id ff2mr5346327wib.15.1429191456848; Thu, 16 Apr 2015 06:37:36 -0700 (PDT) From: Simmo X-Google-Original-From: Simmo Date: Thu, 16 Apr 2015 14:37:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "python-list@python.org" Subject: Re: New to Python - block grouping (spaces) References: <9fc57fc9-0399-4ff3-882a-d041f02827d8@googlegroups.com> In-Reply-To: <9fc57fc9-0399-4ff3-882a-d041f02827d8@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1429191464 news.xs4all.nl 2844 [2001:888:2000:d::a6]:34683 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89022 On 16/04/2015 05:07, Blake McBride wrote: > Greetings, > > I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. > > I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages under my belt, I very strongly disagree with the notion of using white space to delimit blocks. Not wanting to beat what I believe is probably a dead horse, I have one question. > > Is there a utility that will allow me to write Python-like code that includes some block delimiter that I can see, that converts the code into runnable Python code? If so, where can I find it? > > Thanks! > > Blake McBride > Interesting point of view. Likewise, I have used more than a dozen languages and I like Python a lot. Why? Because the use of indentation is (mostly) unambiguous and I find it a lot cleaner than having to check whether I need braces, parentheses or whatever delimiters are correct for a particular language. Plus I am relieved of the stylistic debates about whether the start-of-block marker starts after the 'IF' or on a new line and how the subsequent lines of code should be aligned. For me, Python is clean and easy to write and, more importantly, I find it easier to follow and understand code written by others. Steve Simmons