Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'languages,': 0.04; 'subject:Python': 0.05; 'ugly': 0.07; 'python': 0.09; 'brackets': 0.09; 'compilers.': 0.09; 'saved.': 0.09; 'language': 0.14; '(c#,': 0.16; 'brackets.': 0.16; 'longer.': 0.16; 'mark,': 0.16; 'received:your-server.de': 0.16; 'superfluous': 0.16; 'whitespace.': 0.16; 'wrote:': 0.17; 'widely': 0.17; 'feb': 0.19; 'parse': 0.22; "i'd": 0.22; 'elements': 0.23; 'for?': 0.23; 'statement': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'looks': 0.26; 'charset:iso-8859-15': 0.26; 'guess': 0.27; 'newer': 0.27; 'then.': 0.27; '+0100,': 0.29; '20%': 0.29; 'source': 0.29; 'worked': 0.30; 'code': 0.31; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; "can't": 0.34; 'compared': 0.35; 'faster': 0.35; 'really': 0.36; 'michael': 0.36; 'visual': 0.36; 'bad': 0.37; 'does': 0.37; 'being': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'short': 0.39; "you've": 0.61; 'back': 0.62; 'more': 0.63; 'day': 0.73; '2013': 0.84; 'widespread': 0.91 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: python-list@python.org Subject: Re: Python Newbie References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> Date: Sun, 24 Feb 2013 21:33:28 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" In-Reply-To: <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> User-Agent: Opera Mail/12.14 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.5/16734/Sun Feb 24 19:03:36 2013) 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: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361738021 news.xs4all.nl 6880 [2001:888:2000:d::a6]:43711 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39784 On Sun, 24 Feb 2013 20:40:05 +0100, wrote: >> > if (some statement): # short form >> > >> > rather than >> > >> > if (some statement == true): # long form >> >> >> What all those ugly brackets are for? >> > > Mark, > > Back in the day when C was king, or take many newer long established > languages (C#, Java), the use of () has been widespread and mandated by > the compilers. I have never heard anyone moan about the requirement to > use parentheses. You've never heard me then. I ... "strongly dislike" having to parse visual elements which I consider superfluous and implicit. Does the English language have a proverb like "not being able to see the forest for the trees"? To me, a C source looks like all brackets. Can't see the code for all the brackets. > Now come Python in which parens are optional, and all of a sudden they > are considered bad and apparently widely abandoned. Do you really not > see that code with parens is much more pleasing visually? I guess one can get just as religious about the brackets as one can about the whitespace. if ( condition ) { action } vs if condition: action In time estimated, I'd say I can read and understand Python code about 20% faster than any of these brackety languages, even compared to languages I worked a with couple of years longer. That's a lot of effort saved. Michael