Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'mrab': 0.05; 'c++,': 0.07; 'python': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parentheses': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'java': 0.21; 'header :In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'goes': 0.33; 'to:addr:python- list': 0.33; 'languages': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'visual': 0.36; "didn't": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Z6qpHj2gDwz3Lr7kLSGXx3hD3VXVrxAstSRjJXYdu0U=; b=J99JfPkWMtRnlvqalLcXpsklGuNq/9F5LoiUnNyYy8UBStv6Ahklr6rE22tjhcq7gZ ufz1Yhh7WGRwGMe12KwF1k/RuT1mNXMzmF8sdKVtfreQRA9f7wCBFryhHSE+Izyb0GHN oR3ruZLk7u8yIhZiCUKJOcru8P5qdTJbf2mZ2HXDRKmO8rHs28RW2qfhPIllKve3Abhz Od8T2i/BCF+I0BhrRu8RD4ZqGwfzrYuVAsQQSVvQJwWaJuuh4rIoUuEY/nuzUAdymckQ teAgU473Pxi8maGOAiE0pADgFqP3izy7bLgwXM21CxpXxPVJc3QBBPtF7OOfZb0ooN7e nXqw== MIME-Version: 1.0 X-Received: by 10.52.29.209 with SMTP id m17mr7768455vdh.111.1361738573302; Sun, 24 Feb 2013 12:42:53 -0800 (PST) In-Reply-To: <512A796D.6070802@mrabarnett.plus.com> References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> <512A796D.6070802@mrabarnett.plus.com> Date: Mon, 25 Feb 2013 07:42:53 +1100 Subject: Re: Python Newbie From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361738581 news.xs4all.nl 6908 [2001:888:2000:d::a6]:50881 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39788 On Mon, Feb 25, 2013 at 7:34 AM, MRAB wrote: > Some languages require parentheses, others don't. > > C does. C++, Java and C# are descended from, or influenced by, C. > > Algol didn't (doesn't?). Pascal, Modula-2, Oberon, Ada, and others > don't. > > Parentheses are used where required, but not used where they're not > required, in order to reduce visual clutter. And just to muddy the waters, parens are used in Python when the condition goes over a line break: if (condition1 and condition2 and condition3): ChrisA