Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.12] Improve references in the tutorial (GH-108069) (#108203) | Miss Islington (bot) | 2023-08-21 | 1 | -6/+6 |
| | | | | | | | | | | Improve references in the tutorial (GH-108069) * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples. (cherry picked from commit 622ddc41674c2566062af82f7b079aa01d2aae8c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | Doc: use "unnumbered" footnotes (#98954) | Manuel Kaufmann | 2022-11-01 | 1 | -2/+2 |
| | | | | | Use unnumbered footnote in this file to avoid reseting the footnotes numbering. Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1. | ||||
* | small grammatical change (GH-96138) | sand8089 | 2022-08-21 | 1 | -1/+1 |
| | | | changed a to an under An example that uses most of the list methods | ||||
* | Docs: Update SyntaxError message in REPL example for list comprehension ↵ | Cheryl Sabella | 2022-06-29 | 1 | -3/+3 |
| | | | | (GH-93901) | ||||
* | gh-85757: Change wording from nested to inner (GH-91811) | slateny | 2022-04-30 | 1 | -1/+1 |
| | | | | | | | | | #85757 https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant Automerge-Triggered-By: GH:rhettinger | ||||
* | bpo-46270: Describe the `in` and `not in` operators as membership tests. ↵ | Raymond Hettinger | 2022-01-10 | 1 | -4/+6 |
| | | | | (GH-30504) | ||||
* | bpo-43325: Add FAQ entry for identity tests (GH-25168) | Raymond Hettinger | 2021-04-04 | 1 | -3/+2 |
| | |||||
* | bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) | Zackery Spytz | 2020-11-28 | 1 | -1/+1 |
| | |||||
* | bpo-39705 : sorted() tutorial example under looping techniques improved ↵ | Rahul Kumaresan | 2020-05-18 | 1 | -0/+15 |
| | | | | (GH-18999) | ||||
* | bpo-38558: Link to further docs from walrus operator mention in tutorial ↵ | Adorilson Bezerra | 2020-02-03 | 1 | -3/+4 |
| | | | | (GH-16973) | ||||
* | bpo-38558: Mention `:=` in conditions tutorial (GH-16919) | Ammar Askar | 2019-10-25 | 1 | -4/+4 |
| | |||||
* | bpo-14050: Note that not all data can be sorted (GH-15381) | Raymond Hettinger | 2019-08-22 | 1 | -0/+7 |
| | |||||
* | bpo-36377: Specify that range() can not be compared (GH-12468) | Emmanuel Arias | 2019-04-02 | 1 | -12/+11 |
| | |||||
* | bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174) | Serhiy Storchaka | 2018-12-19 | 1 | -5/+5 |
| | |||||
* | bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037) | Stéphane Wirtel | 2018-10-26 | 1 | -1/+1 |
| | |||||
* | Update list.remove(x) documentation (GH-8636) | Lysandros Nikolaou | 2018-08-03 | 1 | -2/+2 |
| | | | Rephrase it to "It raises a `ValueError`" | ||||
* | bpo-32337: Update documentats about dict order (GH-4973) | hui shang | 2018-04-04 | 1 | -15/+11 |
| | |||||
* | bpo-30312: Small correction in datastructures set code sample (GH-2081) | KatherineMichel | 2017-06-10 | 1 | -1/+1 |
| | |||||
* | bpo-28315: Improve code examples in docs (GH-1372) | UltimateCoder | 2017-05-03 | 1 | -1/+1 |
| | | | | | | 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 Zhang | 2017-03-13 | 1 | -2/+2 |
| | | | | | | equality (GH-572) | ||||
* | Fix small typos in introduction and datastructures of tutorial (GH-272) | Jim Fasarakis-Hilliard | 2017-02-25 | 1 | -4/+4 |
| | | | | | * Fix small typos in introduction and datastructures * Use iterable instead of L in the doc for list.extend | ||||
* | Issue #28587: Improve list examples in the tutorial | Raymond Hettinger | 2016-11-22 | 1 | -24/+20 |
| | |||||
* | Issue 28587: list.index documentation missing start and stop arguments. ↵ | Raymond Hettinger | 2016-11-21 | 1 | -3/+10 |
| | | | | (Contributed by Mariatta Wijaya.) | ||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | |||||
* | Improve tutorial suggestion for looping techniques | Raymond Hettinger | 2015-09-01 | 1 | -11/+11 |
| | |||||
* | Closes #23181: codepoint -> code point | Georg Brandl | 2015-01-14 | 1 | -1/+1 |
| | |||||
* | Merge #21739: mention subtle difference between loops and listcomps in tutorial. | R David Murray | 2014-10-01 | 1 | -3/+8 |
|\ | |||||
| * | #21739: mention subtle difference between loops and listcomps in tutorial. | R David Murray | 2014-10-01 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | | | | | | We don't want to go into a full explanation of scopes at this point in the tutorial, so we just mention that the loop creates or overwrites a persistent variable while the listcomp doesn't. Not mentioning this would lead someone to incorrectly assume loops and listcomps were *completely* equivalent, which would confuse them later. Original patch by Rose Ames, tweaked to remove the word 'scope'. | ||||
* | | Issue 21575: Show list.sort() arguments in the tutorial. | Raymond Hettinger | 2014-05-27 | 1 | -2/+3 |
|/ | |||||
* | Issue #21545: Add .pop example and tweak comment about pure mutation methods. | Terry Jan Reedy | 2014-05-23 | 1 | -2/+7 |
| | | | | Patch prepared by David Harrigan. | ||||
* | Add missing list methods. Found by Leonardo Pereira on docs@. | Georg Brandl | 2013-10-06 | 1 | -0/+12 |
| | |||||
* | Merge rephrasing with 3.2. | Ezio Melotti | 2012-11-17 | 1 | -3/+3 |
|\ | |||||
| * | Rephrase a sentence in the set and dict comprehensions tutorial page. | Ezio Melotti | 2012-11-17 | 1 | -3/+3 |
| | | |||||
* | | Issue #16225: Merge from 3.2: Add additional note to tutorial about looping. | Chris Jerdonek | 2012-10-16 | 1 | -0/+13 |
|\ \ | |/ | |||||
| * | Issue #16225: Add additional note to tutorial about changing sequence while ↵ | Chris Jerdonek | 2012-10-16 | 1 | -0/+13 |
| | | | | | | | | looping. | ||||
* | | Close issue #16073: merge fix from 3.2. | Chris Jerdonek | 2012-09-28 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Close issue #16073: fix map() example in list comprehension documentation. | Chris Jerdonek | 2012-09-28 | 1 | -1/+1 |
| | | | | | | | | Thanks for the e-mail report to docs@. | ||||
* | | merge with 3.2 | Sandro Tosi | 2012-08-12 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | zip() returns an iterator, make a list() of it; thanks to Martin from docs@ | Sandro Tosi | 2012-08-12 | 1 | -1/+1 |
| | | |||||
* | | #14840: merge with 3.2. | Ezio Melotti | 2012-06-17 | 1 | -9/+21 |
|\ \ | |/ | |||||
| * | #14840: Add a bit on the difference between tuples and lists. Initial patch ↵ | Ezio Melotti | 2012-06-17 | 1 | -9/+21 |
| | | | | | | | | by Zachary Ware. | ||||
* | | #13549: merge with 3.2. | Ezio Melotti | 2011-12-13 | 1 | -72/+102 |
|\ \ | |/ | |||||
| * | #13549: improve tutorial section about listcomps. | Ezio Melotti | 2011-12-13 | 1 | -72/+102 |
| | | |||||
* | | Closes #12192: Document that mutating list methods do not return the ↵ | Georg Brandl | 2011-10-08 | 1 | -8/+16 |
|/ | | | | instance (original patch by Mike Hoy). | ||||
* | Fix typo. | Georg Brandl | 2010-11-10 | 1 | -1/+1 |
| | |||||
* | Fix typo. | Georg Brandl | 2010-09-20 | 1 | -1/+1 |
| | |||||
* | Issue #4570: Clean-up tutorial example | Raymond Hettinger | 2010-08-08 | 1 | -9/+5 |
| | |||||
* | Remove redundant example. | Georg Brandl | 2010-05-21 | 1 | -4/+1 |
| | |||||
* | Merged revisions 79522 via svnmerge from | Ezio Melotti | 2010-03-31 | 1 | -14/+13 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79522 | ezio.melotti | 2010-03-31 10:26:24 +0300 (Wed, 31 Mar 2010) | 1 line Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list. ........ | ||||
* | Merged revisions 79179 via svnmerge from | Georg Brandl | 2010-03-21 | 1 | -0/+5 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79179 | georg.brandl | 2010-03-21 10:37:54 +0100 (So, 21 Mär 2010) | 1 line Mention inefficiency of lists as queues, add link to collections.deque discussion. ........ |