[Tutor] [Fwd: Re: "Print" on 3.1 for Mac?]

Christian Witts cwitts at compuscan.co.za
Mon Jun 29 13:55:54 CEST 2009


Forwarding to the list.

-------- Original Message --------
Subject: 	Re: [Tutor] "Print" on 3.1 for Mac?
Date: 	Mon, 29 Jun 2009 12:38:43 +0100
From: 	andré palma <andrefsp at gmail.com>
To: 	Christian Witts <cwitts at compuscan.co.za>
References: 
<ac56af79a36314157de09d7d78770ffa.squirrel at webmail.ithstech.com> 
<4A489E92.2040400 at compuscan.co.za>



try to find out if is there any space before "print". Sometimes some
text editors put an empty space in the beginning of the lines and
sometimes that causes some erros. 

On Mon, 2009-06-29 at 12:59 +0200, Christian Witts wrote:
> lev at ithstech.com wrote:
> > Have I installed something incorrectly in Python 3.1 for Mac if I get a
> > syntax error on
> >
> > print "hello world"
> >
> > ?
> >
> > My Python 2.3.5 executes this just fine.  What have I missed?
> >
> > Thanks much for anything, Lev
> >
> >
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >   
> Please take a read through http://docs.python.org/3.0/whatsnew/3.0.html 
> for a list of changes from the 2.x series to 3.x.  It includes the fact 
> that the print command is now a function and needs to be called 
> accordingly, ie. print("Hello world!")
> 




-- 
Kind Regards,
Christian Witts




More information about the Tutor mailing list