Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'string.': 0.04; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.09; 'essentially': 0.10; '"print"': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'received:wlfraed': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'subject:Help': 0.17; 'trying': 0.21; 'url:home': 0.21; 'statement': 0.23; 'versions': 0.23; '"this': 0.24; 'sat,': 0.25; '(in': 0.26; 'function': 0.27; 'second': 0.28; 'indicated': 0.29; 'print': 0.29; 'error': 0.30; 'supposed': 0.32; 'named': 0.33; 'points': 0.34; 'header:X-Complaints-To:1': 0.34; 'lee': 0.34; 'anything': 0.34; 'implies': 0.34; 'to:addr:python- list': 0.35; 'something': 0.35; 'received:org': 0.36; 'bound': 0.37; 'charset:us-ascii': 0.37; 'received:76': 0.37; 'uses': 0.38; 'third': 0.38; 'called': 0.40; 'missing': 0.40; 'being': 0.40; 'user': 0.40; 'to:addr:python.org': 0.40; 'capital': 0.63; 'dennis': 0.73; 'ghosh': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Help needed to understand the error message Date: Sat, 24 Mar 2012 13:11:59 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-99-231.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332609815 news.xs4all.nl 6931 [2001:888:2000:d::a6]:59047 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22118 On Sat, 24 Mar 2012 09:07:35 +0530, Aloke Ghosh declaimed the following in gmane.comp.python.general: > > I feel the error is in Capital P in print . > However the error indicated with "*^*" > hints at quote at the end of the line. > Yes... Python is case sensitive, and the keyword/statement (in versions <3.x) or standard function (in 3.x) uses print The ^ at the end of the line essentially points out where Python gave up trying to turn the statement into something valid. Consider Print = "This is a string" or Print("This is a string") to Print "This is a string" The first is valid -- "Print" is a user name being bound to a string. The second implies a user procedure named "Print" being called with one argument. The third line can not be decoded into anything valid -- was it supposed to be a function call missing () or a binding missing the = -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/