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


Groups > comp.lang.python > #69764

Re: How can I parse this correctly?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'lawrence': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; '__future__': 0.16; 'fancy': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; "i'd": 0.34; 'received:google.com': 0.35; 'subject:?': 0.36; 'being': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'new': 0.61; 'subject:this': 0.83; '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=fkR5s9Ar3oMmK43yHvI8Lli2rU9YcUC+nsxeFCQDVok=; b=p1WyIycUCa4u4GpRhbmonCl28ZGaONkLCfLBa3ziq7bUgdhg8zt550NDCbYmPNM96E M5HovYmXDYtvLhb9Hmxp9kNkSD6wqYQm/+RpHn/LntaMNQFHtbrvcHJNEKcc5DJM8OTr Y5wWm8V+OE5Otb5bO5YsCpT57wuV9hYRbxkMfGEoIoRWcvcTP+kC/lxyzMLttwU8OzGJ dQ4BHfpdjylaB9e6E3/54Xv5HLsbHTevsxivnkMHkLcumh9CdiEvLtL1sWP3Rf+OrmzU sYzGsKCjHPbWIMhXip9onrwqf70y3/OKtGGNWXx3lV6v+gWqscAQrUir81ZpSc4Tdc3v 5/0A==
MIME-Version 1.0
X-Received by 10.66.142.201 with SMTP id ry9mr25283357pab.14.1396785257016; Sun, 06 Apr 2014 04:54:17 -0700 (PDT)
In-Reply-To <lhre0d$mmv$1@ger.gmane.org>
References <CAJUMiQsoNbNzDgUOkaQxFLGptTqKriD7DcXSeFwwu_-v4TKJKQ@mail.gmail.com> <CAPTjJmqUv_CvcXOgD=reNybyTGNZDGbPaOTdszpJgEvY8bLqoQ@mail.gmail.com> <7E623349-4095-4550-9E2F-D7261C311DBE@gmail.com> <CAPTjJmo_ZRaiqwaJGwfamcktOc9GAmz=Dno82kW_=ZQgRYZ5_g@mail.gmail.com> <lhre0d$mmv$1@ger.gmane.org>
Date Sun, 6 Apr 2014 21:54:16 +1000
Subject Re: How can I parse this correctly?
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.8950.1396785265.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1396785265 news.xs4all.nl 2876 [2001:888:2000:d::a6]:51522
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:69764

Show key headers only | View raw


On Sun, Apr 6, 2014 at 9:32 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> I'd recommend using this import statement in Python 2 so you get used to
> print being a function.
>
> from __future__ import print_function

Or better still, just write Python 3 code - then you get to take
advantage of all the fancy new features :)

ChrisA

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


Thread

Re: How can I parse this correctly? Chris Angelico <rosuav@gmail.com> - 2014-04-06 21:54 +1000

csiph-web