New submission from Simon Hayward <simonhayw...@gmail.com>: 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), ---------- assignee: docs@python components: Documentation files: argparse-howto.patch keywords: patch messages: 165381 nosy: docs@python, simon.hayward priority: normal severity: normal status: open title: HOWTOs Argparse tutorial - code example raises SyntaxError type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file26374/argparse-howto.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15345> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com