I am running Eclipse SDK v3.6 with PyDev v2.6 plugin on two PC, with Linux and Windows.
I would like to pass a tuple as an argument, like:
foo = lambda (x,y): (y,x)
print (foo((1,2)))
This works on Linux and gives the correct result:
> (2,1)
On Windows it rises an error:
foo = lambda (x,y): (y,x)
^
SyntaxError: invalid syntax
How to solve the problem?