cpython/Doc/tutorial
Ben Hoyt 3705b98620 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
2018-09-19 03:28:28 -07:00
..
appendix.rst Improve highlighting of some code blocks. (GH-6401) 2018-04-08 19:18:04 +03:00
appetite.rst Merged revisions 66452 via svnmerge from 2008-09-13 17:46:05 +00:00
classes.rst bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208) 2018-07-25 17:21:32 +03:00
controlflow.rst Mention both relevant PEPs in function annotations tutorial (GH-6304) 2018-04-25 12:52:13 -05:00
datastructures.rst Update list.remove(x) documentation (GH-8636) 2018-08-02 19:45:48 -07:00
errors.rst Closes #28713 uses OSError in the tutorial 2016-11-16 21:13:43 +05:30
floatingpoint.rst Issue #27206: Fix doctests in Doc/tutorial. 2016-08-09 17:44:52 -05:00
index.rst #23891: add a section to the Tutorial describing virtual environments and pip 2015-06-08 17:35:45 -04:00
inputoutput.rst bpo-34712: Fix style in examples in "Input and Output" (GH-9361) 2018-09-19 03:28:28 -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 11:10:55 +03:00
introduction.rst bpo-33460: remove ellipsis that look like continuation prompts (GH-7851) 2018-09-10 18:13:08 -07:00
modules.rst use rich markup for PEP reference (GH-7939) 2018-06-26 20:57:39 -07:00
stdlib.rst bpo-33641: Convert RFC references into links. (GH-7103) 2018-05-31 07:39:00 +03:00
stdlib2.rst Start of 3.8.0a0 2018-01-31 17:44:09 -05:00
venv.rst bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) 2018-05-15 14:58:35 -04:00
whatnow.rst bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) 2018-05-15 14:58:35 -04:00