Brett Cannon
20003f9162
bpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)
2018-03-02 14:10:21 -08:00
Cheryl Sabella
b7c1a94f94
[2.7] bpo-25059: Clarify the print separator usage in tutorial (GH-5879)
...
By default `print` adds spaces between its arguments.
(cherry picked from commit 84c4b0cc67 )
2018-02-25 12:50:26 -08:00
Miss Islington (bot)
76349471ad
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
...
(cherry picked from commit fbee88244e )
Co-authored-by: Mario Corchero <mariocj89@gmail.com >
2018-02-25 11:38:24 -08:00
Miss Islington (bot)
0e0d1017a4
bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) ( #5082 )
...
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. (GH-5079)
(cherry picked from commit f190eb59e6 )
2018-01-02 10:42:12 -05:00
Miss Islington (bot)
465f3d0820
Improve the String tutorial docs (GH-4541) (GH-4546)
...
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.
(cherry picked from commit 78a5722ae9 )
2017-11-24 09:35:53 -08:00
regexaurus
5b5002c466
Clarification to the break statement (GH-2453) (GH-2459)
...
Clarify that the break statement breaks out of the innermost enclosing for or while loop.
(cherry picked from commit 36fc896740 )
2017-06-27 19:36:15 -07:00
Mariatta
107949cb87
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2120)
...
import json before using json module
(cherry picked from commit 1dbce04d0e )
2017-06-11 18:59:33 -07:00
Mariatta
e1b02ff588
[2.7] bpo-28315: Improve code examples in docs (GH-1372) ( #1447 )
...
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>.
(cherry picked from commit 8856940cf2 )
2017-05-03 18:54:28 -07:00
Qingpeng "Q.P." Zhang
4bfb603810
Remove redundant footnote ( #181 )
...
It was accidentally added in cc79837 .
2017-02-19 22:32:51 +03:00
Mariatta Wijaya
40ba60f6bf
Issue #29381 : Clarify ordering of UNIX shebang line as source encoding line
2017-02-01 21:14:47 -08:00
Serhiy Storchaka
8b5528782a
Fixed mismatching title overline.
2016-12-04 15:42:13 +02:00
Serhiy Storchaka
e7f555b969
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
2016-12-04 10:20:18 +02:00
Martin Panter
a52b567a3f
Issue #28820 : Fix spelling of “practice” as a noun
2016-11-30 10:18:45 +00:00
Terry Jan Reedy
dace77c530
Issue #28815 : Change '?' to '<module>' in some doc examples.
...
Patch by Mariatta Wijaya.
2016-09-30 15:38:41 -04:00
Martin Panter
8f1dd224e0
Issue #26462 : Doc: avoid literal_block warnings, fix syntax highlighting.
...
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
b362f75f6e
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
2015-11-02 03:37:02 +00:00
Martin Panter
d51b0f2188
Issue #24314 : Add links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +00:00
Serhiy Storchaka
12d547a80d
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 13:45:32 +03:00
Serhiy Storchaka
b4905efe23
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:50:12 +03:00
Serhiy Storchaka
9a118f1dc3
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 09:37:36 +03:00
Martin Panter
00f19eff3e
Issue #25179 : Preparatory cleanup of existing docs on string formatting
...
* There was a link pointing to the section on the string.Formatter class (and
multiple links in Python 3), when the section on the common format string
syntax is probably more appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
and this is tested in Python 3; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00
Serhiy Storchaka
9b2e37f688
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:47:12 +03:00
Raymond Hettinger
9ce9f77983
Improve tutorial suggestion for looping techniques
2015-09-01 02:20:44 -07:00
Serhiy Storchaka
251aede2f2
Fix minor docs markup errors.
2015-03-14 21:32:41 +02:00
Benjamin Peterson
ad5ddf79c3
remove parenthesis from print statement ( closes #23396 )
2015-02-04 22:06:55 -05:00