[Tutor] "Print" on 3.1 for Mac?

Alan Gauld alan.gauld at btinternet.com
Mon Jun 29 18:25:04 CEST 2009


<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?
> 

The "Whats New" document on V3

V3 is radically different to previous versiions and you need to read 
the Whats New document carefully and change all your code to match.
Only change to V3 if you have a really good reason and know what 
that is, otherwise you are probably better sticking with 2.X for now.

Moving to 2.6 is a good migratiion step since there are tools to 
convert most of your code from 2.6 to 3. But if you are moving 
from 2.3 to 3 that is a big jump and you should definitely go 
to 2.6 as an interim step.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/






More information about the Tutor mailing list