Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'win32': 0.03; 'that?': 0.05; 'subject:Python': 0.06; 'imported': 0.09; 'parsed': 0.09; 'python': 0.11; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'subject: \n ': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; '>>>>': 0.31; 'subject:that': 0.31; 'though.': 0.31; 'call.': 0.33; 'guess': 0.33; 'subject:with': 0.35; 'test': 0.35; 'keyword': 0.36; 'error.': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'future': 0.60; 'more': 0.64; 'future,': 0.83; '10:32': 0.84; '2014,': 0.84; 'subject:made': 0.84; 'technique': 0.93 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sun, 14 Dec 2014 22:38:10 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python console rejects an object reference, having made an object with that reference as its name in previous line 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418621897 news.xs4all.nl 2829 [2001:888:2000:d::a6]:38484 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82548 On 12/14/2014 10:32 PM, Chris Angelico wrote: > Did you actually test that? > > Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit > (Intel)] on win32 > Type "copyright", "credits" or "license()" for more information. >>>> print("hello") > hello > > Since print is a keyword when not imported from future, there's no way > for print(value) to be parsed as a function call. 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.