Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'argument,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:object': 0.16; 'supported.': 0.16; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; 'subject:that': 0.31; 'though.': 0.31; 'guess': 0.33; 'subject:with': 0.35; 'received:google.com': 0.35; 'error.': 0.37; 'pm,': 0.38; 'either': 0.39; 'even': 0.60; 'future': 0.60; 'maximum': 0.63; 'skip:n 10': 0.64; 'subject:made': 0.84; 'to:none': 0.92; 'technique': 0.93 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=mrjMtour76qsPcrVsxZyfK/mB6z3Nff8G+pqW5n6HPo=; b=GvLB3sGofOP8JYA2z21Df/QP7CBftGEs+F73wtNr4TUjvF7WhFnaGWOn+955llSEQX 6ZIDHLa+CCyVKBMzVu0NYHBH6fUZkUKYcOMIitgHArSnhOfPwDXDdWOMJFDCxXJrHTww TAQ3C4n2+KG8dRTqunApe+9wlf9IwpmcXlQNGnfRctrYJNCyeg0p7h8n22EGT9IsJQX5 Qvx+mepfCE8QkoW1EpyCnJWzWU5F+AKmg/6bsSLKkknCRU4v0EcJ0ctLvz1nhpjQLKmh R+yc8rpe6/vwKhrHcFkYBJYJY55NUt6k94fXsM8KCimiSTj9roPMW4pPUh97s1npLCx1 cPIw== MIME-Version: 1.0 X-Received: by 10.42.130.194 with SMTP id w2mr26007734ics.12.1418622722975; Sun, 14 Dec 2014 21:52:02 -0800 (PST) In-Reply-To: <548E73C2.1040006@gmail.com> References: <01937423-e700-4825-a502-568dcb2d5324@googlegroups.com> <41c32aed-315a-43df-9dc6-380d0ecc3425@googlegroups.com> <548e4837$0$13012$c3e8da3$5496439d@news.astraweb.com> <548E7129.1000807@gmail.com> <548E73C2.1040006@gmail.com> Date: Mon, 15 Dec 2014 16:52:02 +1100 Subject: Re: Python console rejects an object reference, having made an object with that reference as its name in previous line 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: 1418622731 news.xs4all.nl 2956 [2001:888:2000:d::a6]:41755 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82550 On Mon, Dec 15, 2014 at 4:38 PM, Michael Torrie wrote: > Thought I had indirectly, since I've been using this print technique for > the last few days. Good to know it works either way, though. Guess the > future import is only to make not having parens and error. Yeah. I usually recommend using parens and a single native-string argument, for maximum portability. That'll work even on pre-2.6 where the future import isn't supported. ChrisA