[New-bugs-announce] [issue15345] HOWTOs Argparse tutorial - code example raises SyntaxError

Simon Hayward report at bugs.python.org
Fri Jul 13 15:18:27 CEST 2012


New submission from Simon Hayward <simonhayward at 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 at python
components: Documentation
files: argparse-howto.patch
keywords: patch
messages: 165381
nosy: docs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue15345>
_______________________________________


More information about the New-bugs-announce mailing list