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: 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: References: <7E623349-4095-4550-9E2F-D7261C311DBE@gmail.com> Date: Sun, 6 Apr 2014 21:54:16 +1000 Subject: Re: How can I parse this correctly? From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, Apr 6, 2014 at 9:32 PM, Mark Lawrence 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