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


Groups > comp.lang.python > #69255

Re: Python language hack for C-style programmers [DO NOT USE!] :-)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.033
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.06; 'compiler': 0.07; 'spec': 0.09; 'subject: [': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'check?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'partly': 0.16; 'language': 0.16; 'wrote:': 0.18; 'input': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'gcc': 0.31; 'probably': 0.32; 'fri,': 0.33; 'guess': 0.33; 'could': 0.34; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'c++': 0.36; 'depends': 0.38; 'pm,': 0.38; 'tell': 0.60; "you're": 0.61; 'fire': 0.65; 'between': 0.67; 'mar': 0.68; 'guaranteed': 0.75; 'otten': 0.84; 'subject:NOT': 0.84; 'valid,': 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=GhgCP769dKKUKsqK9c7wgqnZi5Jy9rbks0EkUikfBbQ=; b=wp5OBsadA2YImzbMa3xPBOyRl//lJcUnxYgz6xSAi/b34vWfbT7hVxxz/5J9aLr4jM tHVzSlg7GdRZllQwnl2SfPpAn90t6qKJClglYumAr9IJHGN0VZHM49kx6U/S4ycI28IY LFbkd/H2RpVCA3v0dI+EpnKjbWgH6xTPqunqnmonqVO7g3ZNS9ujV216J2i/URBdxduW 666SIbXg680AOc8nrAdti8sFy7pMRMFJSjFpt7UdI8MbQ9/PFMCS+E9ewiFetWF8fD0K 7fZhqyCtNisTrMqcsWO3KPNF6HYkFlVV/4r/MvxrYD8nUQM5WlTqS6d7TzCLA8mR2ID9 K6yQ==
MIME-Version 1.0
X-Received by 10.68.248.7 with SMTP id yi7mr6991568pbc.31.1395993073285; Fri, 28 Mar 2014 00:51:13 -0700 (PDT)
In-Reply-To <lh39cc$6cd$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>
Date Fri, 28 Mar 2014 18:51:13 +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.8659.1395993082.18130.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395993082 news.xs4all.nl 2865 [2001:888:2000:d::a6]:47000
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:69255

Show key headers only | View raw


On Fri, Mar 28, 2014 at 6:46 PM, Peter Otten <__peter__@web.de> wrote:
> Why would you guess if you can check? Just fire up the interactive
> interpreter^W^W compiler:

Partly because there's a difference between valid C++ and valid input
to the G++ compiler :) Knowing that it works with g++ doesn't tell me
that it's actually valid, and I don't feel like digging into the specs
to find out where you're guaranteed to be allowed to do that. (I could
probably test it with one of the language spec options, but then it
still depends on the exact version of GCC and the exact spec chosen.)

ChrisA

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


Thread

Re: Python language hack for C-style programmers [DO NOT USE!] :-) Chris Angelico <rosuav@gmail.com> - 2014-03-28 18:51 +1100

csiph-web