summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39869: Fix typo in 'Instance objects' section. (GH-18889) (GH-18898)Miss Islington (bot)2020-03-141-1/+1
| | | | | | (cherry picked from commit e5e56328afac50aad6d8893185d8e7ba8928afe2) Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
* Add a reference to the name mangling description in the tutorial to the ↵Miss Islington (bot)2018-11-071-0/+3
| | | | | | | index. (GH-10138) (cherry picked from commit c5eec4426d9144b2255500217d0e3ff9463d2770) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix a typo about a comma. (GH-10306)Miss Islington (bot)2018-11-031-1/+1
| | | | | (cherry picked from commit fe62d877e300e1ee4145fff8f2bdba498b685f91) Co-authored-by: İsmail Arılık <arilik.ismail@gmail.com>
* [3.6] bpo-35110: Fix unintentional spaces around hyphens and dashes. ↵Serhiy Storchaka2018-10-311-2/+2
| | | | | | (GH-10231). (GH-10254) (cherry picked from commit 3f819ca138db6945ee4271bf13e42db9f9b3b1e4)
* [3.6] bpo-35054: Add yet more index entries for symbols. (GH-10121). (GH-10182)Serhiy Storchaka2018-10-282-3/+3
| | | | (cherry picked from commit 913876d824d969f8c7431e8a9d4610a9a11a786e)
* [3.6] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10119)Serhiy Storchaka2018-10-262-3/+6
| | | | | (cherry picked from commit ddb961d2abe5d5fde76d85b21a77e4e91e0043ad) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-21196: Clarify name mangling rules in tutorial (GH-5667)Miss Islington (bot)2018-10-201-0/+5
| | | | | | Initial patch by Chandan Kumar. (cherry picked from commit 13ae4d44381a647aadd09b70b24833052659be41) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)Miss Islington (bot)2018-07-251-2/+2
| | | | | (cherry picked from commit c0f0a7669c73c0d444851dd4c5299de2479214cc) Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
* Fix documentation for input and output tutorial (GH-8231)Miss Islington (bot)2018-07-111-1/+1
| | | | | | The ValueError message ends with a period. (cherry picked from commit 9cffdbffc3b2dec18def1c3e8cfa166d01d609df) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* use rich markup for PEP reference (GH-7939)Miss Islington (bot)2018-06-271-1/+1
| | | | | | it's better to refer to PEP with `pep` role in reStructuredText. It also links to the PEP page. (cherry picked from commit df748c20dabcec5a6e89e0dd74fff21110f8755a) Co-authored-by: Behzad B. Mokhtari <35877268+perplexionist@users.noreply.github.com>
* bpo-33892: Doc: Use gender neutral words (GH-7770)Miss Islington (bot)2018-06-181-10/+10
| | | | | (cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [3.6] bpo-33641: Convert RFC references into links. (GH-7103) (GH-7276)Serhiy Storchaka2018-05-311-1/+1
| | | | | 85% of them are already links. (cherry picked from commit 0a36ac1a09587735237c5978ebd046313922869c)
* [3.6] bpo-33503: Fix the broken pypi link in the source and the ↵Stéphane Wirtel2018-05-162-2/+2
| | | | | | | documentation (GH-6814) (GH-6885) (cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)Miss Islington (bot)2018-05-091-2/+2
| | | | | (cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Mention both relevant PEPs in function annotations tutorial (GH-6304)Miss Islington (bot)2018-04-251-2/+2
| | | | | | Patch by Neeraj Badlani. (cherry picked from commit 643ff711faf417fc3428897dc7d36250ad2cb0e5) Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
* bpo-33297: Mention Pillow to work with more image formats. (GH-6505)Miss Islington (bot)2018-04-211-1/+1
| | | | | | Also update PIL doc references to Pillow. (cherry picked from commit b81ca28b378c8b29204a37f8bd433a3379f53f7d) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
* [3.6] Improve highlighting of some code blocks. (GH-6401). (GH-6424)Serhiy Storchaka2018-04-091-1/+1
| | | | (cherry picked from commit 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50)
* controlflow: Use full example for "5 through 9" (GH-5907)Miss Islington (bot)2018-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. (cherry picked from commit 83d7062d2dc5eacfef578e072bca4747c346fdae) Co-authored-by: Steven M. Vascellaro <S.Vascellaro@gmail.com>
* bpo-31454: Include information about "import X as Y" in Modules tutorial ↵Miss Islington (bot)2018-02-251-0/+19
| | | | | | | (GH-4041) (cherry picked from commit fbee88244e8921afdb29fde51a9a010a8ae18277) Co-authored-by: Mario Corchero <mariocj89@gmail.com>
* bpo-25059: Clarify the print separator usage in tutorial (GH-5879)Miss Islington (bot)2018-02-251-1/+1
| | | | | | By default `print` adds spaces between its arguments. (cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)Miss Islington (bot)2018-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. (GH-5079) (cherry picked from commit f190eb59e60e2ae7a7cbd396458389a7a076e0d3)
* Improve the String tutorial docs (GH-4541) (GH-4545)Miss Islington (bot)2017-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. (cherry picked from commit 78a5722ae950b80a4b3d13377957f3932195aef3)
* bpo-30466: Add brief explanation of classes to tutorial (GH-1804) (GH-2700)Trey Hunner2017-07-211-0/+6
|
* Clarification to the `break` statement (GH-2453) (#GH-2457)regexaurus2017-06-281-1/+1
| | | | Clarify that the break statement breaks out of the innermost enclosing for or while loop. (cherry picked from commit 36fc896740319d2c03aa2054a90a999c162517ef)
* bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2145)Mariatta2017-06-131-21/+29
| | | | Move up the discussion about 'with' keyword, so it appears earlier in the document. (cherry picked from commit bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18)
* bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2118)Mariatta2017-06-121-0/+1
| | | | import json before using json module (cherry picked from commit 1dbce04d0e3e93b715eb0d8024da396361759d16)
* bpo-30312: Small correction in datastructures set code sample (GH-2081) ↵KatherineMichel2017-06-101-1/+1
| | | | | (GH-2085) (cherry picked from commit ca816153445cba3baec15f7e890c71abfe495340)
* [3.6] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1856)Mariatta2017-05-291-4/+2
| | | (cherry picked from commit e405d4b8dfb8b497e1c3d1f0f8e28030040c165e)
* [3.6] bpo-28315: Improve code examples in docs (GH-1372) (#1445)Mariatta2017-05-044-4/+4
| | | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module> (cherry picked from commit 8856940cf2e82cb17db2b684cd5732fe658605ca)
* Fix small typos in introduction and datastructures of tutorial (GH-272) (GH-297)Mariatta2017-02-262-5/+5
| | | (cherry picked from commit 53c1892dc3de1de612b1cf95dc7bf09f82c1babf)
* bpo-29453: Remove reference to undefined dictionary ordering in Tutorial ↵Mariatta2017-02-211-6/+5
| | | | | | | | | | (GH-140) (#208) 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 (cherry picked from commit 32e8f9bdfd4324f1aa4fbbdf1ed8536f2b00cabb)
* 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
|\
| * #29005: clarify terminology in tutorial 'method' discussion.R David Murray2016-12-181-3/+2
| | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | 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 double hyphens that are rendered to literal en-dashes in the documenation.Serhiy Storchaka2016-12-041-2/+2
|\ \ | |/
| * Fixed double hyphens that are rendered to literal en-dashes in the documenation.Serhiy Storchaka2016-12-041-2/+2
| |
* | Issue #28587: Improve list examples in the tutorialRaymond Hettinger2016-11-221-24/+20
| |
* | Issue 28587: list.index documentation missing start and stop arguments. ↵Raymond Hettinger2016-11-211-3/+10
| | | | | | | | (Contributed by Mariatta Wijaya.)
* | Closes #28713 uses OSError in the tutorialKushal Das2016-11-161-1/+1
| |
* | Issue #21864: Merge from 3.5Berker Peksag2016-11-062-50/+31
|\ \ | |/
| * Issue #21864: Remove outdated section about exceptions from the tutorialBerker Peksag2016-11-062-50/+31
| | | | | | | | | | Move the still relevant parts of it to the previous chapter, "Errors and Exceptions".
* | Merge with 3.5Terry Jan Reedy2016-09-301-8/+8
|\ \ | |/
| * Issue #28815: Change '?' to '<module>' in some doc examples.Terry Jan Reedy2016-09-301-8/+8
| | | | | | | | Patch by Mariatta Wijaya.
* | Issue #28306: Merge from 3.5Berker Peksag2016-09-281-1/+1
|\ \ | |/