summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34712: Fix style in examples in "Input and Output" (GH-9361)Ben Hoyt2018-09-191-4/+7
| | | | | | | | | | | 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
* bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)Lew Kurtz2018-09-111-4/+10
| | | | | Remove ellipsis that look like continuation prompts, has a side benefit of putting rest of error message in proper text color.
* Doc: Missing 'f' in an f-string. (GH-9074)Julien Palard2018-09-071-1/+1
|
* Update list.remove(x) documentation (GH-8636)Lysandros Nikolaou2018-08-031-2/+2
| | | Rephrase it to "It raises a `ValueError`"
* bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)Aaron Ang2018-07-251-2/+2
|
* Remove extra parentheses in output formatting tutorial (GH-8350)Aaqa Ishtyaq2018-07-201-2/+2
| | | The parentheses were incorrect.
* Fix documentation for input and output tutorial (GH-8231)Lysandros Nikolaou2018-07-111-1/+1
| | | The ValueError message ends with a period.
* bpo-28626: rearrange discussion of output formatting to encourage f-strings ↵Andrew Kuchling2018-07-071-89/+138
| | | | | | | | (#6036) The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings. This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().
* use rich markup for PEP reference (GH-7939)Behzad B. Mokhtari2018-06-271-1/+1
| | | it's better to refer to PEP with `pep` role in reStructuredText. It also links to the PEP page.
* bpo-33892: Doc: Use gender neutral words (GH-7770)Andrés Delfino2018-06-181-10/+10
|
* bpo-33641: Convert RFC references into links. (GH-7103)Serhiy Storchaka2018-05-311-1/+1
| | | | 85% of them are already links.
* bpo-33503: Fix the broken pypi link in the source and the documentation ↵Stéphane Wirtel2018-05-152-2/+2
| | | | (GH-6814)
* bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)Serhiy Storchaka2018-05-091-2/+2
|
* Mention both relevant PEPs in function annotations tutorial (GH-6304)Neeraj Badlani2018-04-251-2/+2
| | | Patch by Neeraj Badlani.
* bpo-33297: Mention Pillow to work with more image formats. (#6505)Andrés Delfino2018-04-211-1/+1
| | | | Also update PIL doc references to Pillow.
* Improve highlighting of some code blocks. (GH-6401)Serhiy Storchaka2018-04-081-1/+1
|
* bpo-32337: Update documentats about dict order (GH-4973)hui shang2018-04-041-15/+11
|
* controlflow: Use full example for "5 through 9" (GH-5907)Steven M. Vascellaro2018-03-091-1/+1
| | | | Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9". This format is more consistent with the surrounding examples.
* bpo-31454: Include information about "import X as Y" in Modules tutorial ↵Mario Corchero2018-02-251-0/+19
| | | | | | (GH-4041)
* bpo-25059: Clarify the print separator usage in tutorial (GH-5879)Cheryl Sabella2018-02-251-1/+1
| | | By default `print` adds spaces between its arguments.
* bpo-32722: Remove useless example in the Classes tutorial (#5446)Stéphane Wirtel2018-02-011-4/+1
| | | | | In the tutorial about the Generator expression, there is an example with a dict comprehension and not with a generator expression, just removed the code.
* Start of 3.8.0a0Ned Deily2018-01-313-6/+6
|
* bpo-32452: clarify term 'brackets' in generator tutorial (#5079)Emily Morehouse2018-01-021-3/+3
| | | Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (#5079)
* bpo-25910: Fixes redirection from http to https (#4674)Sanyam Khurana2017-12-061-1/+1
|
* Improve the String tutorial docs (GH-4541)Will White2017-11-241-7/+7
| | | | | The paragraph that contains example of string literal concatenation was placed after the section about concatenation using the '+' sign. Moved the paragraph to the appropriate section.
* bpo-31757: Make Fibonacci examples consistent (#3991)Raymond Hettinger2017-10-142-18/+20
|
* bpo-30466: Add brief explanation of classes to tutorial (GH-1804)Trey Hunner2017-07-131-0/+6
|
* Clarification to the `break` statement (GH-2453)regexaurus2017-06-271-1/+1
| | | Clarify that the break statement breaks out of the innermost enclosing for or while loop.
* bpo-6519: Improve Python Input Output Tutorial (GH-2143)Andrew Kuchling2017-06-131-21/+29
| | | Move up the discussion about 'with' keyword, so it appears earlier in the document.
* bpo-30621: Update Input Output Tutorial Example(GH-2074)suketa2017-06-121-0/+1
| | | import json before using json module
* bpo-30312: Small correction in datastructures set code sample (GH-2081)KatherineMichel2017-06-101-1/+1
|
* bpo-30361: Use better example for mixed-type operands (#1701)gfyoung2017-05-291-4/+2
|
* bpo-28315: Improve code examples in docs (GH-1372)UltimateCoder2017-05-034-4/+4
| | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
* bpo-29756: Improve documentation for list methods that compare items by ↵Xiang Zhang2017-03-131-2/+2
| | | | | | equality (GH-572)
* Fix small typos in introduction and datastructures of tutorial (GH-272)Jim Fasarakis-Hilliard2017-02-252-5/+5
| | | | | * Fix small typos in introduction and datastructures * Use iterable instead of L in the doc for list.extend
* bpo-29453: Remove reference to undefined dictionary ordering in Tutorial ↵Jim Fasarakis-Hilliard2017-02-211-6/+5
| | | | | | | | | (GH-140) As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that ordering is undefined and change snippet to remove the unecessary sorted call. * Add sentence mentioning guaranteed output order of kwargs
* Issue #29381: merge with 3.6Mariatta Wijaya2017-02-021-11/+10
|\
| * Issue #29381: Clarify ordering of UNIX shebang line as source encoding lineMariatta Wijaya2017-02-021-11/+10
| |
| * Backed out changeset 3d712292f2faMariatta Wijaya2017-02-021-14/+15
| |
| * Issue #29381: Clarify ordering of UNIX shebang line as source encoding lineMariatta Wijaya2017-02-021-15/+14
| |
* | Merge: #29005: clarify terminology in tutorial 'method' discussion.R David Murray2016-12-181-3/+2
|\ \ | |/
| * Merge: #29005: clarify terminology in tutorial 'method' discussion.R David Murray2016-12-181-3/+2
| |\
| | * #29005: clarify terminology in tutorial 'method' discussion.R David Murray2016-12-181-3/+2
| | | | | | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | | Issue #28820: Merge typo fixes from 3.6Martin Panter2016-12-101-1/+1
|\ \ \ | |/ /
| * | Issue #28820: Merge spelling fixes from 3.5Martin Panter2016-12-101-1/+1
| |\ \ | | |/
| | * Issue #28820: Fix spelling of “practice” as a nounMartin Panter2016-12-101-1/+1
| | |
* | | Fixed mismatching title overline.Serhiy Storchaka2016-12-041-1/+1
|\ \ \ | |/ /
| * | Fixed mismatching title overline.Serhiy Storchaka2016-12-041-1/+1
| |\ \ | | |/
| | * Fixed mismatching title overline.Serhiy Storchaka2016-12-041-1/+1
| | |
* | | Fixed double hyphens that are rendered to literal en-dashes in the documenation.Serhiy Storchaka2016-12-041-2/+2
|\ \ \ | |/ /