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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'ugly': 0.07; 'python': 0.09; 'brackets': 0.09; 'compilers.': 0.09; 'dumps': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; '(c#,': 0.16; 'contributors': 0.16; 'ignores': 0.16; 'long-time': 0.16; 'mark,': 0.16; "someone's": 0.16; 'widely': 0.17; 'required.': 0.22; 'cc:2**0': 0.23; 'programming': 0.23; 'for?': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'language.': 0.27; 'newer': 0.27; 'surprised': 0.29; "i'm": 0.29; 'code': 0.31; 'could': 0.32; 'impression': 0.33; 'anyone': 0.33; 'languages': 0.33; 'received:google.com': 0.34; 'community': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'programmers': 0.36; 'bad': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'short': 0.39; 'where': 0.40; 'from:no real name:2**0': 0.60; 'most': 0.61; 'first': 0.61; 'back': 0.62; 'more': 0.63; 'here': 0.65; 'day': 0.73; 'widespread': 0.91 X-Received: by 10.49.48.71 with SMTP id j7mr190858qen.25.1361734805388; Sun, 24 Feb 2013 11:40:05 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 24 Feb 2013 11:40:05 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=77.98.108.31; posting-account=KNmrtAoAAAD-o0n7P5clulJjssENqvZt References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 77.98.108.31 MIME-Version: 1.0 Subject: Re: Python Newbie From: piterrr.dolinski@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361735580 news.xs4all.nl 6979 [2001:888:2000:d::a6]:54870 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39779 > > if (some statement): # short form > > > > rather than > > > > if (some statement =3D=3D true): # long form >=20 >=20 > What all those ugly brackets are for? >=20 Mark, Back in the day when C was king, or take many newer long established langua= ges (C#, Java), the use of () has been widespread and mandated by the compi= lers. I have never heard anyone moan about the requirement to use parenthes= es. 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 t= hat code with parens is much more pleasing visually? I could understand som= eone's reluctance to use parens if they are very new to programming and Pyt= hons is their first language. But my impression here is that most group con= tributors are long-time programmers and have long used () where they are re= quired. Again, I'm really surprised the community as a whole ignores the pr= ogramming "heritage" and dumps the parens in a heartbeat. Peter