cpython/Doc/tutorial
Miss Islington (bot) d9c89111bd
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.htmlGH-format-string-syntax

https://bugs.python.org/issue34712
(cherry picked from commit 3705b98620)

Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
2018-09-19 13:30:40 -07:00
..
appendix.rst Improve highlighting of some code blocks. (GH-6401) 2018-04-09 07:56:44 -07:00
appetite.rst
classes.rst bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208) 2018-07-25 20:52:18 +03:00
controlflow.rst Mention both relevant PEPs in function annotations tutorial (GH-6304) 2018-04-25 11:04:49 -07:00
datastructures.rst Update list.remove(x) documentation (GH-8636) 2018-08-02 20:03:19 -07:00
errors.rst Closes #28713 uses OSError in the tutorial 2016-11-16 21:13:43 +05:30
floatingpoint.rst
index.rst
inputoutput.rst bpo-34712: Fix style in examples in "Input and Output" (GH-9361) 2018-09-19 13:30:40 -07:00
interactive.rst bpo-25910: Fixes redirection from http to https (#4674) 2017-12-06 17:39:33 +01:00
interpreter.rst bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738) 2018-05-09 01:54:38 -07:00
introduction.rst bpo-33460: remove ellipsis that look like continuation prompts (GH-7851) 2018-09-10 18:49:39 -07:00
modules.rst use rich markup for PEP reference (GH-7939) 2018-06-26 21:17:14 -07:00
stdlib.rst bpo-33641: Convert RFC references into links. (GH-7103) 2018-05-30 22:33:23 -07:00
stdlib2.rst Fixed mismatching title overline. 2016-12-04 15:43:57 +02:00
venv.rst bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6872) 2018-05-16 10:05:46 -04:00
whatnow.rst bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6872) 2018-05-16 10:05:46 -04:00