News for hackers. Stuff that matters.
Re:Job Description as runnable python UnitTest by craigts on Friday September 03, 2010 @09:03AM (#1659396)
print("2. Fork out this code, suggest improvements and submit those")

There fixed it for you :)

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.
Re:Job Description as runnable python UnitTest by ciupicri on Friday September 03, 2010 @04:35PM (#1661053)
Do you mean as in x = (x) = ((x)) = ...? In this case you're right, although it's still not a function.