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


Groups > comp.lang.python > #111985

Re: Python Print Error

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python Print Error
Date Thu, 28 Jul 2016 14:00:33 -0400
Lines 15
Message-ID <mailman.1.1469728837.6033.python-list@python.org> (permalink)
References <386ac508-c9ef-4b7e-907c-00005d04af0f@googlegroups.com> <CAPM-O+zzOJ8UgEuyJ3cSfXtLXYrWOXFhjT3nZVeTqN3+SDOjKA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de FleaCQ1qNknAln7jw4AGAQvH9bAnPEZlbCJHevkOwuPg==
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'debug': 0.04; 'subject:Python': 0.05; 'subject:Error': 0.07; 'cc:addr:python- list': 0.09; 'url:blog': 0.10; 'python': 0.10; '"this': 0.13; 'thu,': 0.15; '2016': 0.16; 'parentheses': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Print': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'print': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'url:mail': 0.40; 'url:info': 0.71; 'jul': 0.72; 'to:none': 0.91; 'joel': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=rXFCBMxBqQPc0ywwNk7ZfJ+v9Mww0QMasumz2cs7Dts=; b=U3k3Hwi/FW/kBe382JrPKwx5DpwztBb8o2vssf99hxb8DJJlaXPMHklbw3Hcmj2q74 vBUpCOtvwxj/F7nRnyQF7+DXoxIHlOPEHPLmrldUmCJDgbuUy7nSrvvTwbTlxyostdkE kQi+icJhU6ip95OtlnFArwkACmiJntP4Oyz+S8KMsS7Q+wAz9H6vuMSEEGhFvff8Ajps xWstVVwRhWp/pQC+AvseGXAI4Uqs0vfRrsXYrYOvTqiU/XQjxbsbbb4aOutru0GcrH95 l6h1SZZLGdU4CNWhnl2VIK61/geLNfQGOlCVZq1e+UobIPVFRQB9APcK2xOJRzS5IjMz H9Eg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=rXFCBMxBqQPc0ywwNk7ZfJ+v9Mww0QMasumz2cs7Dts=; b=gZRci/NuDRF2rw7hilh0oGI28JNChzyjw+mGNn9JMJnExdtSGUxTRD2OlmepDSxU2z j6XtD+sy5ViU0bxwk0wi9HaeiXr8q3Wb3lodNUlbVWLKWKtpeMaayhbzX9pKQtS6Dn1h VYA0q2D5ruyIj7UaaTuhxpwQQAosc39VwmX+OQ0sYqQUEqf0wVi4nadQlo8k0nlyfayS 9AfyWvo+t1rMpcNiDjgzL+x5Kouryw9d2/BNy2K+p5SPtblalWoZTuxmgC322TXtxrh/ Qza8gHnmeXDD1YxDKNhpgqsZta64QIpjRAOslD1cNAflmjAJ41Sq8ihJ7+Kye1ojXHtW ySrg==
X-Gm-Message-State AEkoous4cI0R/YIBTkiRNNRv37H0QzXnfnmp4mjtA8hnWRMsMDoZ129jDaK2qjPvxOYDsorEHLA9IYJeLwQ6jg==
X-Received by 10.202.53.198 with SMTP id c189mr21494473oia.65.1469728834256; Thu, 28 Jul 2016 11:00:34 -0700 (PDT)
In-Reply-To <386ac508-c9ef-4b7e-907c-00005d04af0f@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <CAPM-O+zzOJ8UgEuyJ3cSfXtLXYrWOXFhjT3nZVeTqN3+SDOjKA@mail.gmail.com>
X-Mailman-Original-References <386ac508-c9ef-4b7e-907c-00005d04af0f@googlegroups.com>
Xref csiph.com comp.lang.python:111985

Show key headers only | View raw


On Thu, Jul 28, 2016 at 1:40 PM, Cai Gengyang <gengyangcai@gmail.com> wrote:
> How to debug this ?
>
>>>> print "This line will be printed."
> SyntaxError: Missing parentheses in call to 'print'
> --
> https://mail.python.org/mailman/listinfo/python-list

You are using python 3.x.  print is a function.  Use print("this line
will be printed")

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays

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


Thread

Python Print Error Cai Gengyang <gengyangcai@gmail.com> - 2016-07-28 10:40 -0700
  Re: Python Print Error Joel Goldstick <joel.goldstick@gmail.com> - 2016-07-28 14:00 -0400
  Re: Python Print Error Ian Kelly <ian.g.kelly@gmail.com> - 2016-07-28 12:03 -0600
  Re: Python Print Error Timothy <timothy@nospam.tld> - 2016-07-28 22:30 +0000
  Re: Python Print Error Stephane Wirtel <stephane@wirtel.be> - 2016-07-29 00:49 +0200

csiph-web