Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69257
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3a.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.019 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'elegant': 0.07; 'feature,': 0.09; 'subject: [': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'statement.': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'break;': 0.31; 'withdraw': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; 'useful': 0.36; 'two': 0.37; 'pm,': 0.38; 'most': 0.60; 'mar': 0.68; 'condition.': 0.84; 'otten': 0.84; 'subject:NOT': 0.84; 'to:none': 0.92 |
| 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:cc :content-type; bh=aILWtGhmFMVKXfs6rrwOb/9bKmwuKIBRbXOqzN4CA2g=; b=0EyXcmrUMaBO1K5QtipwHunO9+ekXJkB+np6OL9NH9o8zRl15+2cIG15QBz1obWg5B ZI77bgeea1ePTd8fECmzM4fgIQ9YIRuG7yTQ0+CT5zctSapvCK0ee/SZKcTSEJu4IYgo 95cNmj8ia6doF6uiBqE9qGStg3nLJkcJ8GxILhqIVfTvKuNhAdq/twMjsg7kzXI+iGJF zU6l52RoCXm4VfSVcS4EoPeievdhY6ITzNZF2twg8fhcs4DSISefo6hKjv8Z5k1kep6O 6Tsfn6UTuJ1vSsiETxFd7Q0YIQxkFBFF5MK1D6QzQtRkJ6JToBCrbJYzX8TMQy8ZnM8y ApMw== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.164.229 with SMTP id yt5mr7108666pab.67.1395995932294; Fri, 28 Mar 2014 01:38:52 -0700 (PDT) |
| In-Reply-To | <lh3bme$ubb$1@ger.gmane.org> |
| References | <20140327110856.14991bb0@bigbox.christie.dr> <CAPTjJmoSEiBEO9fXfwM7mGywty+dT8erBqeu2mpyrxAf12udcw@mail.gmail.com> <lh2jsg$cqu$1@ger.gmane.org> <CAPTjJmoU-Aa_Y2DDHzCyzMNUfNnuV2i2gsHWZP3gKBhzrXjLzw@mail.gmail.com> <lh39cc$6cd$1@ger.gmane.org> <CAPTjJmrXbB+3sK9BBg-PMik0wFB0XpzzqbidL1r1qUuuSNa2fQ@mail.gmail.com> <lh3bme$ubb$1@ger.gmane.org> |
| Date | Fri, 28 Mar 2014 19:38:52 +1100 |
| Subject | Re: Python language hack for C-style programmers [DO NOT USE!] :-) |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8661.1395995940.18130.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1395995940 news.xs4all.nl 2951 [2001:888:2000:d::a6]:58726 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:69257 |
Show key headers only | View raw
On Fri, Mar 28, 2014 at 7:26 PM, Peter Otten <__peter__@web.de> wrote:
> One of the most elegant applications of these two principles is to
> declare a variable in a condition. Consider:
>
> if (double d = prim(true)) {
> left /= d;
> break;
> }
Okay! Then I withdraw the "or, to my knowledge, C++" part of my
original statement. It's a useful feature, if not a unique one.
ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python language hack for C-style programmers [DO NOT USE!] :-) Chris Angelico <rosuav@gmail.com> - 2014-03-28 19:38 +1100
csiph-web