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.
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:32 | admin | set | github: 59550 |
| 2012年07月13日 19:41:51 | ezio.melotti | set | status: open -> closed assignee: docs@python -> ezio.melotti nosy: + ezio.melotti messages: + msg165413 resolution: fixed stage: resolved |
| 2012年07月13日 19:40:48 | python-dev | set | nosy:
+ python-dev messages: + msg165412 |
| 2012年07月13日 18:19:50 | tshepang | set | nosy:
+ tshepang |
| 2012年07月13日 13:18:27 | simon.hayward | create | |