Issue 15345: HOWTOs Argparse tutorial - code example raises SyntaxError (original) (raw)

HOWTOs - Argparse Tutorial, the code example will raise a syntax error when run. A trailing python3 reference (if called as a function): 'end=""', to suppresses a newline remains.

print "{}^{} == ".format(args.x, args.y), end=""

Should read:

print "{}^{} ==".format(args.x, args.y),