summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/datastructures.rst
Commit message (Collapse)AuthorAgeFilesLines
* Doc: use "unnumbered" footnotes (GH-98954)Miss Islington (bot)2022-11-011-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. (cherry picked from commit f042646595d1cdd2ecdc15222b1766f746d010f0) Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
* Docs: Update SyntaxError message in REPL example for list comprehension ↵Miss Islington (bot)2022-06-291-3/+3
| | | | | | | (GH-93901) (GH-94426) (cherry picked from commit 22b783aba05bcc3a21af9e5ae308ffbb98ff6a12) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-46270: Describe the `in` and `not in` operators as membership tests. ↵Miss Islington (bot)2022-01-101-4/+6
| | | | (GH-30504) (GH-30509)
* bpo-43325: Add FAQ entry for identity tests (GH-25168)Raymond Hettinger2021-04-041-3/+2
|
* bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)Zackery Spytz2020-11-281-1/+1
|
* bpo-39705 : sorted() tutorial example under looping techniques improved ↵Rahul Kumaresan2020-05-181-0/+15
| | | | (GH-18999)
* bpo-38558: Link to further docs from walrus operator mention in tutorial ↵Adorilson Bezerra2020-02-031-3/+4
| | | | (GH-16973)
* bpo-38558: Mention `:=` in conditions tutorial (GH-16919)Ammar Askar2019-10-251-4/+4
|
* bpo-14050: Note that not all data can be sorted (GH-15381)Raymond Hettinger2019-08-221-0/+7
|
* bpo-36377: Specify that range() can not be compared (GH-12468)Emmanuel Arias2019-04-021-12/+11
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-5/+5
|
* bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)Stéphane Wirtel2018-10-261-1/+1
|
* Update list.remove(x) documentation (GH-8636)Lysandros Nikolaou2018-08-031-2/+2
| | | Rephrase it to "It raises a `ValueError`"
* bpo-32337: Update documentats about dict order (GH-4973)hui shang2018-04-041-15/+11
|
* bpo-30312: Small correction in datastructures set code sample (GH-2081)KatherineMichel2017-06-101-1/+1
|
* bpo-28315: Improve code examples in docs (GH-1372)UltimateCoder2017-05-031-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 Zhang2017-03-131-2/+2
| | | | | | equality (GH-572)
* Fix small typos in introduction and datastructures of tutorial (GH-272)Jim Fasarakis-Hilliard2017-02-251-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 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.)
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Improve tutorial suggestion for looping techniquesRaymond Hettinger2015-09-011-11/+11
|
* Closes #23181: codepoint -> code pointGeorg Brandl2015-01-141-1/+1
|
* Merge #21739: mention subtle difference between loops and listcomps in tutorial.R David Murray2014-10-011-3/+8
|\
| * #21739: mention subtle difference between loops and listcomps in tutorial.R David Murray2014-10-011-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 Hettinger2014-05-271-2/+3
|/
* Issue #21545: Add .pop example and tweak comment about pure mutation methods.Terry Jan Reedy2014-05-231-2/+7
| | | | Patch prepared by David Harrigan.
* Add missing list methods. Found by Leonardo Pereira on docs@.Georg Brandl2013-10-061-0/+12
|
* Merge rephrasing with 3.2.Ezio Melotti2012-11-171-3/+3
|\
| * Rephrase a sentence in the set and dict comprehensions tutorial page.Ezio Melotti2012-11-171-3/+3
| |
* | Issue #16225: Merge from 3.2: Add additional note to tutorial about looping.Chris Jerdonek2012-10-161-0/+13
|\ \ | |/
| * Issue #16225: Add additional note to tutorial about changing sequence while ↵Chris Jerdonek2012-10-161-0/+13
| | | | | | | | looping.
* | Close issue #16073: merge fix from 3.2.Chris Jerdonek2012-09-281-1/+1
|\ \ | |/
| * Close issue #16073: fix map() example in list comprehension documentation.Chris Jerdonek2012-09-281-1/+1
| | | | | | | | Thanks for the e-mail report to docs@.
* | merge with 3.2Sandro Tosi2012-08-121-1/+1
|\ \ | |/
| * zip() returns an iterator, make a list() of it; thanks to Martin from docs@Sandro Tosi2012-08-121-1/+1
| |
* | #14840: merge with 3.2.Ezio Melotti2012-06-171-9/+21
|\ \ | |/
| * #14840: Add a bit on the difference between tuples and lists. Initial patch ↵Ezio Melotti2012-06-171-9/+21
| | | | | | | | by Zachary Ware.
* | #13549: merge with 3.2.Ezio Melotti2011-12-131-72/+102
|\ \ | |/
| * #13549: improve tutorial section about listcomps.Ezio Melotti2011-12-131-72/+102
| |
* | Closes #12192: Document that mutating list methods do not return the ↵Georg Brandl2011-10-081-8/+16
|/ | | | instance (original patch by Mike Hoy).
* Fix typo.Georg Brandl2010-11-101-1/+1
|
* Fix typo.Georg Brandl2010-09-201-1/+1
|
* Issue #4570: Clean-up tutorial exampleRaymond Hettinger2010-08-081-9/+5
|
* Remove redundant example.Georg Brandl2010-05-211-4/+1
|
* Merged revisions 79522 via svnmerge fromEzio Melotti2010-03-311-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 fromGeorg Brandl2010-03-211-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. ........
* The key-value pairs can be lists or tuples or any iterable.Raymond Hettinger2009-06-161-1/+1
|
* Expand a bit on dict views.Georg Brandl2009-06-161-11/+18
|
* Fix markup.Georg Brandl2009-06-081-3/+3
|