120917 David W Noon wrote:
> On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 :
>>   print '              ',eval(expression)
> The above line uses obsolete syntax.  Try using
>    #!/usr/bin/python2 -3
> for your hash-bang line on all your old Python scripts.

Well, thanks for the info -- which is what I suspected -- ,
but just what is the correct Python3 syntax for that simple print line ?
This is my only Python script, which I got from somewhere long forgotten,
& I generally don't have a need to do Python programming.

While this subject is open, can anyone tell me
how to get Python3 started from CLI automatically to load the math item ?
-- ie to do 'from math import *' without my having to type it ?
That would make it possible to use 'python' instead of my script,
which would then allow me to use variables, sometimes an advantage.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca


Reply via email to