Re:Job Description as runnable python UnitTest
by ciupicri on Friday September 03, 2010 @09:22AM
(#1659446)
They might be using RHEL (Red Hat Enterprise Linux) which comes with Python 2.4 and in 2.4 you can't use print as a function.
LE: python 2.5 -> 2.4 (bconway was right)
Re:Job Description as runnable python UnitTest
by bconway on Friday September 03, 2010 @09:38AM
(#1659489)
Two corrections:
A.) RHEL 5.x (by default) comes with Python 2.4, not 2.5.
B.) Yes you can. It is required in 3.x, though.
Re:Job Description as runnable python UnitTest
by kingkilr on Friday September 03, 2010 @10:31AM
(#1659669)
Well you can't use it as a function. You can however combine the parsing of the "print" keyword, and the "(" and ")" taking precedence around the string to form KEYWORD STRING that looks a hell of a lot like a function call though.
Re:Job Description as runnable python UnitTest
by koenigdavidmj on Friday September 03, 2010 @04:19PM
(#1660981)
Actually, print(one single argument) works the same in both Python 2 and 3.
There fixed it for you :)