diff options
author | Ben Hoyt <benhoyt@gmail.com> | 2018-09-19 06:28:28 -0400 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-19 03:28:28 -0700 |
commit | 3705b9862025705ea60041a9e310f99a164db722 (patch) | |
tree | 260d8e8bda94be7a27277f1114fed01777d66143 /Programs/python.c | |
parent | e89de7398718f6e68848b6340830aeb90b7d582c (diff) | |
download | cpython-git-3705b9862025705ea60041a9e310f99a164db722.tar.gz |
bpo-34712: Fix style in examples in "Input and Output" (GH-9361)
A couple of fixes here to make this more PEP-8:
* Avoid multiple statements on one line with `;` statement separator -- this is very rare in Python and is "generally discouraged" in PEP 8 (and if used, per PEP 8 there shouldn't be a space before the `;`)
* Add output for the first "Formatted String Literals" example. (Side note: are the doctests for this being run? If so, why didn't it fail?)
* Avoid space before `!r`. I have generally not seen spaces before the `!`, and this also matches the style used in the docs here: https://docs.python.org/3/library/string.html#format-string-syntax
https://bugs.python.org/issue34712
Diffstat (limited to 'Programs/python.c')
0 files changed, 0 insertions, 0 deletions