homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: HOWTOs Argparse tutorial - code example raises SyntaxError
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, python-dev, simon.hayward, tshepang
Priority: normal Keywords: patch

Created on 2012年07月13日 13:18 by simon.hayward, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
argparse-howto.patch simon.hayward, 2012年07月13日 13:18 review
Messages (3)
msg165381 - (view) Author: Simon Hayward (simon.hayward) Date: 2012年07月13日 13:18
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),
msg165412 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012年07月13日 19:40
New changeset de18c4470ff1 by Ezio Melotti in branch '2.7':
#15345: fix SyntaxError in argparse tutorial example. Patch by Simon Hayward.
http://hg.python.org/cpython/rev/de18c4470ff1 
msg165413 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012年07月13日 19:41
Fixed, thanks for the patch!
History
Date User Action Args
2022年04月11日 14:57:32adminsetgithub: 59550
2012年07月13日 19:41:51ezio.melottisetstatus: open -> closed

assignee: docs@python -> ezio.melotti

nosy: + ezio.melotti
messages: + msg165413
resolution: fixed
stage: resolved
2012年07月13日 19:40:48python-devsetnosy: + python-dev
messages: + msg165412
2012年07月13日 18:19:50tshepangsetnosy: + tshepang
2012年07月13日 13:18:27simon.haywardcreate

AltStyle によって変換されたページ (->オリジナル) /