Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.06; 'yeah,': 0.09; 'subject:How': 0.10; 'python': 0.11; '(int': 0.16; '__future__': 0.16; 'braces': 0.16; 'c++.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'import': 0.22; '31,': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M1nJzgdQ6Sx0/mR1bpqeiMRCQKr6JcMDyJB14m4zGHU=; b=wnn8AT8bdX4gqqt2e5YdvMUTazLSvicfY0HK5jO9iXD1ayfNAoFvnClPWkjoHHeenU QcIS64e9CqoZWWlAMhNRJNhM9rrfGU9WGM5WsW5jGKzhNmEC96jHObCTQGuDJIvWMgq8 Qgc+KMmEdmOw4nAm6laopzWFQuXYtgT2AyQ2uDbppq3dCllAQD9Nc/eqQiscLOTf3mdj ynaZQ3FA36yslGowVidzer625c9gOnLZ8HzODZ633X6bMHYVgpXi6HE/BuhdISkVl4Gj Lu7FVq6pcAinFb7PaKyJ92fsd3wdcOe0bcSBX92eY6idflqpYaMVER0gFkFJrSwlB6fq YrXA== MIME-Version: 1.0 X-Received: by 10.220.109.66 with SMTP id i2mr6551491vcp.51.1369936206600; Thu, 30 May 2013 10:50:06 -0700 (PDT) In-Reply-To: References: <51a6ef42$0$11118$c3e8da3@news.astraweb.com> <503a1a1e-9c5c-4c01-929b-673421907ab8@ys5g2000pbc.googlegroups.com> Date: Fri, 31 May 2013 03:50:06 +1000 Subject: Re: How clean/elegant is Python's syntax? 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369936215 news.xs4all.nl 15918 [2001:888:2000:d::a6]:37195 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46519 On Fri, May 31, 2013 at 3:46 AM, Ma Xiaojun wrote: > On Fri, May 31, 2013 at 1:28 AM, Chris Angelico wrote: >> for (int i=0;i> { >> //do something with foo[i] >> } > > This is interesting! Yeah, but that's C++. It won't work in Python without this directive: from __future__ import braces ChrisA