Miss Islington (bot)
6c588a00ed
Correct info about "f.read(size)". (GH13852)
...
In text mode, the "size" parameter indicates the number of characters, not bytes.
(cherry picked from commit faff81c05f
)
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
2019-09-10 09:00:09 -07:00
Miss Islington (bot)
a8424940b4
bpo-14112: Allow beginners to explore shallowness in greater depth ;-) (GH-15465) (GH-15469)
...
(cherry picked from commit 69ee87e99c
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-24 11:33:18 -07:00
Miss Islington (bot)
b6341e676a
bpo-30826: Improve control flow examples (GH-15407) (GH-15410)
...
(cherry picked from commit 6fcb6cfb13
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-22 23:52:12 -07:00
Miss Islington (bot)
f6a7f5bc50
bpo-12634: Clarify an awkward section of the tutorial (GH-15406) (GH-15409)
...
(cherry picked from commit 483ae0cf1d
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-22 23:45:57 -07:00
Miss Islington (bot)
cb8de91dad
bpo-14050: Note that not all data can be sorted (GH-15381) (GH-15395)
...
(cherry picked from commit 4109263a7e
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-22 09:39:52 -07:00
Miss Islington (bot)
dcc53ebbff
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) ( #15070 )
...
(cherry picked from commit 2491134029
)
Co-authored-by: mental <m3nta1@yahoo.com>
2019-08-01 07:34:57 -07:00
Miss Islington (bot)
975d4d3651
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
...
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77
)
Co-authored-by: Julien Palard <julien@palard.fr>
2019-07-08 14:13:57 -07:00
Miss Islington (bot)
0cba121029
bpo-37403: Touch up venv docs (GH-14458)
...
Add a versionadded for PS Core and note that `.venv` is a common virtual environment name.
(cherry picked from commit f9f8e3ce70
)
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
2019-06-28 12:36:09 -07:00
Steve Dower
af7282e129
Improve Windows commands in tutorial (GH-14400)
2019-06-26 09:41:45 -07:00
Marco Buttu
218e47b618
bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)
2019-06-01 14:11:47 -07:00
pbhd
e1f95e77e0
bpo-36739: Update controlflow.rst (GH-12983)
...
in addition to global-statement also mention nonlocal-statement
(in the paragraph describing access to variables which are non local to a function
2019-05-28 20:38:03 -07:00
Pablo Galindo
b76302ddd0
bpo-36540: Documentation for PEP570 - Python positional only arguments ( #13202 )
...
* bpo-36540: Documentation for PEP570 - Python positional only arguments
* fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments
* Update reference for compound statements
* Apply suggestions from Carol
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Update Doc/tutorial/controlflow.rst
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Add extra bullet point and minor edits
2019-05-28 16:45:32 -07:00
Julien Palard
51ddab8dae
Doc: Add missing forward reference in the tutorial. (GH-13499)
2019-05-28 15:10:23 +02:00
Utkarsh Gupta
3e2afd78ba
bpo-36008: Doc update for 3.8 migration (GH-12887)
2019-05-13 08:29:39 -04:00
Adorilson Bezerra
e19a91e45f
Add a footnote about Cheese Shop in Doc/tutorial (GH-13103)
2019-05-07 16:20:58 -04:00
Jonatan
98a1e06c47
bpo-36189: Fixing typo in tutorial introduction (GH-13090)
2019-05-04 17:55:29 -04:00
Utkarsh Gupta
ee0309f3d8
closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008)
2019-04-29 19:20:06 -07:00
Colin Watson
71ce03df9c
Clarify file-closing example in tutorial (GH-11652)
2019-04-17 08:18:37 -04:00
Inada Naoki
5410d3d283
better __init__.py explanation in tutorial ( #12763 )
...
* better __init__.py explanation in tutorial
* Update Doc/tutorial/modules.rst
Co-Authored-By: methane <songofacandy@gmail.com>
2019-04-11 15:10:35 +09:00
Emmanuel Arias
b00479d42a
bpo-36377: Specify that range() can not be compared (GH-12468)
2019-04-01 21:52:42 -07:00
Raymond Hettinger
fb28fcc925
Revert "Minor doc improvement (GH-10341)" (GH-12597)
...
This reverts commit dfd775a0b1
.
2019-03-27 21:03:02 -07:00
Andre Delfino
dfd775a0b1
Minor doc improvement (GH-10341)
...
Change "star-operator" to "* operator".
2019-03-26 21:17:50 -04:00
Ned Deily
6661c1720e
Replace "DOS box" with link to Windows FAQ. (GH-12390)
2019-03-24 15:03:54 -04:00
Cheryl Sabella
b7105c9c96
bpo-35566: Add links to annotation glossary term (GH-11291)
2018-12-23 21:09:09 -08:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +02:00
Andrés Delfino
c5eec4426d
Add a reference to the name mangling description in the tutorial to the index. (GH-10138)
2018-11-07 19:59:45 +02:00
İsmail Arılık
fe62d877e3
Fix a typo about a comma. (GH-10306)
2018-11-03 17:05:59 +02:00
Serhiy Storchaka
3f819ca138
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
2018-10-31 02:26:06 +02:00
Serhiy Storchaka
913876d824
bpo-35054: Add yet more index entries for symbols. (GH-10121)
2018-10-28 13:41:26 +02:00
Stéphane Wirtel
e483f02423
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
2018-10-26 12:52:11 +02:00
Serhiy Storchaka
ddb961d2ab
bpo-35054: Add more index entries for symbols. (GH-10064)
2018-10-26 09:00:49 +03:00
Berker Peksag
13ae4d4438
bpo-21196: Clarify name mangling rules in tutorial (GH-5667)
...
Initial patch by Chandan Kumar.
2018-10-20 02:33:48 +02:00
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
Lew Kurtz
f019579828
bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)
...
Remove ellipsis that look like continuation prompts,
has a side benefit of putting rest of error message in proper text color.
2018-09-10 18:13:08 -07:00
Julien Palard
25fa141487
Doc: Missing 'f' in an f-string. (GH-9074)
2018-09-07 11:31:47 +02:00
Lysandros Nikolaou
bcd1d971b6
Update list.remove(x) documentation (GH-8636)
...
Rephrase it to "It raises a `ValueError`"
2018-08-02 19:45:48 -07:00
Aaron Ang
c0f0a7669c
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
2018-07-25 17:21:32 +03:00
Aaqa Ishtyaq
cb5f3fdb9d
Remove extra parentheses in output formatting tutorial (GH-8350)
...
The parentheses were incorrect.
2018-07-20 09:06:44 -07:00
Lysandros Nikolaou
9cffdbffc3
Fix documentation for input and output tutorial (GH-8231)
...
The ValueError message ends with a period.
2018-07-10 17:11:34 -07:00
Andrew Kuchling
ced350b195
bpo-28626: rearrange discussion of output formatting to encourage f-strings ( #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().
2018-07-07 17:36:23 -04:00
Behzad B. Mokhtari
df748c20da
use rich markup for PEP reference (GH-7939)
...
it's better to refer to PEP with `pep` role in reStructuredText. It also links to the PEP page.
2018-06-26 20:57:39 -07:00
Andrés Delfino
5092439c2c
bpo-33892: Doc: Use gender neutral words (GH-7770)
2018-06-18 13:34:30 +09:00
Serhiy Storchaka
0a36ac1a09
bpo-33641: Convert RFC references into links. (GH-7103)
...
85% of them are already links.
2018-05-31 07:39:00 +03:00
Stéphane Wirtel
19177fbd5d
bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)
2018-05-15 14:58:35 -04:00
Serhiy Storchaka
ddb6215a55
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
2018-05-09 11:10:55 +03:00
Neeraj Badlani
643ff711fa
Mention both relevant PEPs in function annotations tutorial (GH-6304)
...
Patch by Neeraj Badlani.
2018-04-25 12:52:13 -05:00
Andrés Delfino
b81ca28b37
bpo-33297: Mention Pillow to work with more image formats. ( #6505 )
...
Also update PIL doc references to Pillow.
2018-04-21 15:17:26 +03:00
Serhiy Storchaka
46936d5a71
Improve highlighting of some code blocks. (GH-6401)
2018-04-08 19:18:04 +03:00
hui shang
dfbbbf16f9
bpo-32337: Update documentats about dict order (GH-4973)
2018-04-04 13:55:05 +09:00
Steven M. Vascellaro
83d7062d2d
controlflow: Use full example for "5 through 9" (GH-5907)
...
Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.
2018-03-09 11:57:21 -08:00