Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
print(…, sep=…) raises SyntaxError #777
With IPython 0.11 (Mac OS X Lion, installed via Fink) and Python 2.7, the print() function raises a strange SyntaxError:
The name print seems to be correctly defined:
I'm not sure whether this matters, but the failure happens with both autocall on and off.
Hmm, I think I can see where this is coming from. We parse the code with
I think I can see a way round it - I'll hopefully have a go later today.
referenced this issue
Sep 12, 2011
pushed a commit
Nov 3, 2014
Hi, I just started learning python and came across the same error as described below:
@takluyver thanks @lebigot thanks a lot, the last version worked using print div.join(map(str, [row,row,row])).