Miss Islington (bot)
8648c06b9b
Doc: use "unnumbered" footnotes (GH-98954)
...
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 f042646595
)
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
2022-11-01 06:35:26 -07:00
Miss Islington (bot)
7244c57701
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94426)
...
(cherry picked from commit 22b783aba0
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2022-06-29 19:22:22 +02:00
Miss Islington (bot)
2e6798f352
bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) (GH-30509)
2022-01-09 18:31:51 -08:00
Raymond Hettinger
f8775e4f72
bpo-43325: Add FAQ entry for identity tests (GH-25168)
2021-04-03 19:54:49 -07:00
Zackery Spytz
d41ec65ab7
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
2020-11-28 16:53:39 +02:00
Rahul Kumaresan
eefd4e0333
bpo-39705 : sorted() tutorial example under looping techniques improved (GH-18999)
2020-05-17 18:32:34 -07:00
Adorilson Bezerra
5807efd4c3
bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)
2020-02-03 18:11:19 +01:00
Ammar Askar
cb2cf06b0a
bpo-38558: Mention `:=` in conditions tutorial (GH-16919)
2019-10-25 17:20:05 -05:00
Raymond Hettinger
4109263a7e
bpo-14050: Note that not all data can be sorted (GH-15381)
2019-08-22 09:11:35 -07:00
Emmanuel Arias
b00479d42a
bpo-36377: Specify that range() can not be compared (GH-12468)
2019-04-01 21:52:42 -07:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +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
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
hui shang
dfbbbf16f9
bpo-32337: Update documentats about dict order (GH-4973)
2018-04-04 13:55:05 +09:00
KatherineMichel
ca81615344
bpo-30312: Small correction in datastructures set code sample (GH-2081)
2017-06-10 12:19:09 -07:00
UltimateCoder
8856940cf2
bpo-28315: Improve code examples in docs (GH-1372)
...
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
2017-05-03 09:46:45 -07:00
Xiang Zhang
b2d77175d1
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
2017-03-13 10:09:16 +08:00
Jim Fasarakis-Hilliard
53c1892dc3
Fix small typos in introduction and datastructures of tutorial (GH-272)
...
* Fix small typos in introduction and datastructures
* Use iterable instead of L in the doc for list.extend
2017-02-25 13:13:33 -08:00
Raymond Hettinger
8c5e190d36
Issue #28587 : Improve list examples in the tutorial
2016-11-21 16:29:50 -08:00
Raymond Hettinger
5bd5b9d813
Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.)
2016-11-21 15:12:54 -08:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Raymond Hettinger
502bf511b3
Improve tutorial suggestion for looping techniques
2015-09-01 02:33:02 -07:00
Georg Brandl
3be472b5f7
Closes #23181 : codepoint -> code point
2015-01-14 08:26:30 +01:00
R David Murray
bbf4ae51e4
Merge #21739 : mention subtle difference between loops and listcomps in tutorial.
2014-09-30 21:26:24 -04:00
R David Murray
6bd68608ff
#21739 : mention subtle difference between loops and listcomps in tutorial.
...
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'.
2014-09-30 21:25:38 -04:00
Raymond Hettinger
07e048519b
Issue 21575: Show list.sort() arguments in the tutorial.
2014-05-26 18:44:04 -07:00
Terry Jan Reedy
e17de09101
Issue #21545 : Add .pop example and tweak comment about pure mutation methods.
...
Patch prepared by David Harrigan.
2014-05-23 00:34:12 -04:00
Georg Brandl
a12b682033
Add missing list methods. Found by Leonardo Pereira on docs@.
2013-10-06 13:01:19 +02:00
Ezio Melotti
0bbfae3be4
Merge rephrasing with 3.2.
2012-11-17 12:06:26 +02:00
Ezio Melotti
89b03b0ec6
Rephrase a sentence in the set and dict comprehensions tutorial page.
2012-11-17 12:06:01 +02:00
Chris Jerdonek
38049bb251
Issue #16225 : Merge from 3.2: Add additional note to tutorial about looping.
2012-10-15 19:46:34 -07:00
Chris Jerdonek
4fab8f0e06
Issue #16225 : Add additional note to tutorial about changing sequence while looping.
2012-10-15 19:44:47 -07:00
Chris Jerdonek
18581efe36
Close issue #16073 : merge fix from 3.2.
2012-09-28 07:24:24 -07:00
Chris Jerdonek
fd448daf77
Close issue #16073 : fix map() example in list comprehension documentation.
...
Thanks for the e-mail report to docs@.
2012-09-28 07:07:12 -07:00
Sandro Tosi
131160c5cc
merge with 3.2
2012-08-12 10:25:10 +02:00
Sandro Tosi
0a90a82b8a
zip() returns an iterator, make a list() of it; thanks to Martin from docs@
2012-08-12 10:24:50 +02:00
Ezio Melotti
5b1406fbce
#14840 : merge with 3.2.
2012-06-17 14:12:42 +02:00
Ezio Melotti
f90ea1f0a0
#14840 : Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware.
2012-06-17 14:10:59 +02:00
Ezio Melotti
d31d57e272
#13549 : merge with 3.2.
2011-12-13 15:38:13 +02:00
Ezio Melotti
91621e2c16
#13549 : improve tutorial section about listcomps.
2011-12-13 15:36:19 +02:00
Georg Brandl
388349add2
Closes #12192 : Document that mutating list methods do not return the instance (original patch by Mike Hoy).
2011-10-08 18:32:40 +02:00
Georg Brandl
1790ed2b2e
Fix typo.
2010-11-10 07:57:10 +00:00
Georg Brandl
448f20b8b1
Fix typo.
2010-09-20 06:27:02 +00:00
Raymond Hettinger
afdeca980d
Issue #4570 : Clean-up tutorial example
2010-08-08 01:30:45 +00:00
Georg Brandl
471ed00ae9
Remove redundant example.
2010-05-21 20:45:12 +00:00
Ezio Melotti
8f8db14bb0
Merged revisions 79522 via svnmerge from
...
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.
........
2010-03-31 07:45:32 +00:00
Georg Brandl
718ce2c2bd
Merged revisions 79179 via svnmerge from
...
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.
........
2010-03-21 09:51:44 +00:00
Raymond Hettinger
8699aeaf34
The key-value pairs can be lists or tuples or any iterable.
2009-06-16 20:49:30 +00:00
Georg Brandl
fc11f27f61
Expand a bit on dict views.
2009-06-16 19:22:10 +00:00
Georg Brandl
10e0e30101
Fix markup.
2009-06-08 20:25:55 +00:00