Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46519

Re: How clean/elegant is Python's syntax?

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 <rosuav@gmail.com>
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 <CAGVx7UWnbvRueE0TrnDnnGKuhcpgQeyXRa8Neb-OfLj3Zo3iRQ@mail.gmail.com>
References <CAGVx7UWXAFHSHq37Ep-Vk=cM2wYrEGHSUhNc8s43bCvj_VcVow@mail.gmail.com> <mailman.2374.1369852683.3114.python-list@python.org> <51a6ef42$0$11118$c3e8da3@news.astraweb.com> <mailman.2397.1369904083.3114.python-list@python.org> <503a1a1e-9c5c-4c01-929b-673421907ab8@ys5g2000pbc.googlegroups.com> <CAPTjJmp=5radGce2qEUHRvw1VTk51aj1b6rwgP8fa7BGGrN3aA@mail.gmail.com> <CAGVx7UWnbvRueE0TrnDnnGKuhcpgQeyXRa8Neb-OfLj3Zo3iRQ@mail.gmail.com>
Date Fri, 31 May 2013 03:50:06 +1000
Subject Re: How clean/elegant is Python's syntax?
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2437.1369936215.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, May 31, 2013 at 3:46 AM, Ma Xiaojun <damage3025@gmail.com> wrote:
> On Fri, May 31, 2013 at 1:28 AM, Chris Angelico <rosuav@gmail.com> wrote:
>> for (int i=0;i<nfoo;++i) if (foo[i].marker)
>> {
>>     //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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: How clean/elegant is Python's syntax? Ma Xiaojun <damage3025@gmail.com> - 2013-05-30 02:37 +0800
  Re: How clean/elegant is Python's syntax? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-30 06:18 +0000
    Re: How clean/elegant is Python's syntax? Ma Xiaojun <damage3025@gmail.com> - 2013-05-30 16:54 +0800
      Re: How clean/elegant is Python's syntax? rusi <rustompmody@gmail.com> - 2013-05-30 10:12 -0700
        Re: How clean/elegant is Python's syntax? Chris Angelico <rosuav@gmail.com> - 2013-05-31 03:28 +1000
          Re: How clean/elegant is Python's syntax? rusi <rustompmody@gmail.com> - 2013-05-30 10:59 -0700
            Re: How clean/elegant is Python's syntax? Chris Angelico <rosuav@gmail.com> - 2013-05-31 04:22 +1000
        Re: How clean/elegant is Python's syntax? Ma Xiaojun <damage3025@gmail.com> - 2013-05-31 01:46 +0800
        Re: How clean/elegant is Python's syntax? Chris Angelico <rosuav@gmail.com> - 2013-05-31 03:50 +1000
        Re: How clean/elegant is Python's syntax? Ma Xiaojun <damage3025@gmail.com> - 2013-05-31 01:50 +0800
        Re: How clean/elegant is Python's syntax? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-30 19:36 +0000
    Re: How clean/elegant is Python's syntax? Michael Torrie <torriem@gmail.com> - 2013-05-30 17:30 -0600

csiph-web