KatherineMichel
ca81615344
bpo-30312: Small correction in datastructures set code sample (GH-2081)
9 years ago
UltimateCoder
8856940cf2
bpo-28315: Improve code examples in docs (GH-1372)
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
9 years ago
Xiang Zhang
b2d77175d1
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
9 years ago
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
9 years ago
Raymond Hettinger
8c5e190d36
Issue #28587 : Improve list examples in the tutorial
9 years ago
Raymond Hettinger
5bd5b9d813
Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.)
9 years ago
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
10 years ago
Raymond Hettinger
502bf511b3
Improve tutorial suggestion for looping techniques
10 years ago
Serhiy Storchaka
d3faf43f9b
Issue #23181 : More "codepoint" -> "code point".
11 years ago
Georg Brandl
3be472b5f7
Closes #23181 : codepoint -> code point
11 years ago
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'.
11 years ago
Raymond Hettinger
07e048519b
Issue 21575: Show list.sort() arguments in the tutorial.
12 years ago
Terry Jan Reedy
e17de09101
Issue #21545 : Add .pop example and tweak comment about pure mutation methods.
Patch prepared by David Harrigan.
12 years ago
Georg Brandl
a12b682033
Add missing list methods. Found by Leonardo Pereira on docs@.
12 years ago
Ezio Melotti
89b03b0ec6
Rephrase a sentence in the set and dict comprehensions tutorial page.
13 years ago
Ezio Melotti
9236a4e99d
#16470 : mention set and dict comprehension in the tutorial. Patch by Yongzhi Pan.
13 years ago
Georg Brandl
526b553608
Remove versionadded from the tutorial, at a location where it produces more questions than it answers.
13 years ago
Chris Jerdonek
0cffd6be56
Issue #16225 : Backport from 3.2: Add additional note to tutorial about looping.
13 years ago
Chris Jerdonek
4fab8f0e06
Issue #16225 : Add additional note to tutorial about changing sequence while looping.
13 years ago
Chris Jerdonek
fd448daf77
Close issue #16073 : fix map() example in list comprehension documentation.
Thanks for the e-mail report to docs@.
13 years ago
Sandro Tosi
0a90a82b8a
zip() returns an iterator, make a list() of it; thanks to Martin from docs@
14 years ago
Ezio Melotti
f637920652
#14840 : Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware.
14 years ago
Ezio Melotti
f90ea1f0a0
#14840 : Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware.
14 years ago
Raymond Hettinger
4c8d392bc1
Reorder the entries to put the type specific technique last.
14 years ago
Ezio Melotti
91621e2c16
#13549 : improve tutorial section about listcomps.
14 years ago
Ezio Melotti
4a72d1a661
#13549 : improve tutorial section about listcomps.
14 years ago
Georg Brandl
388349add2
Closes #12192 : Document that mutating list methods do not return the instance (original patch by Mike Hoy).
14 years ago
Senthil Kumaran
169fa9345d
Doc fix. Mathematically correct sentence.
14 years ago
Georg Brandl
f65e25b626
Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r86134 | georg.brandl | 2010-11-03 08:41:00 +0100 (Mi, 03 Nov 2010) | 1 line
A newline in lineno output breaks pyframe output.
........
r86315 | georg.brandl | 2010-11-08 12:05:18 +0100 (Mo, 08 Nov 2010) | 1 line
Fix latex conversion glitch in property/feature descriptions.
........
r86316 | georg.brandl | 2010-11-08 12:08:35 +0100 (Mo, 08 Nov 2010) | 1 line
Fix typo.
........
r86390 | georg.brandl | 2010-11-10 08:57:10 +0100 (Mi, 10 Nov 2010) | 1 line
Fix typo.
........
r86424 | georg.brandl | 2010-11-12 07:19:48 +0100 (Fr, 12 Nov 2010) | 1 line
Build a PDF of the FAQs too.
........
r86425 | georg.brandl | 2010-11-12 07:20:12 +0100 (Fr, 12 Nov 2010) | 1 line
#10008 : Fix duplicate index entry.
........
r86428 | georg.brandl | 2010-11-12 09:09:26 +0100 (Fr, 12 Nov 2010) | 1 line
Fix weird line block in table.
........
r86550 | georg.brandl | 2010-11-20 11:24:34 +0100 (Sa, 20 Nov 2010) | 1 line
Fix rst markup errors.
........
r86561 | georg.brandl | 2010-11-20 12:47:10 +0100 (Sa, 20 Nov 2010) | 1 line
#10460 : Update indent.pro to match PEP 7 better.
........
r86562 | georg.brandl | 2010-11-20 14:44:41 +0100 (Sa, 20 Nov 2010) | 1 line
#10439 : document PyCodec C APIs.
........
r86564 | georg.brandl | 2010-11-20 15:08:53 +0100 (Sa, 20 Nov 2010) | 1 line
#10460 : an even better indent.pro.
........
r86565 | georg.brandl | 2010-11-20 15:16:17 +0100 (Sa, 20 Nov 2010) | 1 line
socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case.
........
r86705 | georg.brandl | 2010-11-23 08:54:19 +0100 (Di, 23 Nov 2010) | 1 line
#10468 : document Unicode exception creation and access functions.
........
r86708 | georg.brandl | 2010-11-23 09:37:54 +0100 (Di, 23 Nov 2010) | 2 lines
#10511 : clarification of what heaps are; suggested by Johannes Hoff.
........
r86713 | georg.brandl | 2010-11-23 19:14:57 +0100 (Di, 23 Nov 2010) | 1 line
assert.h is also included. Thanks to Savio Sena.
........
15 years ago
Georg Brandl
1790ed2b2e
Fix typo.
15 years ago
Georg Brandl
fc3901e5bf
Clarify.
15 years ago
Georg Brandl
44c3ceb8ac
#8267 : Use sorted() to get a sorted list of dict keys.
15 years ago
Georg Brandl
57a5e3f0e2
Merged revisions 84249,84264,84326-84327,84407,84476,84480-84482,84484,84530-84531,84553,84619,84684,84915-84916 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r84249 | georg.brandl | 2010-08-22 01:20:01 +0200 (So, 22 Aug 2010) | 1 line
Remove usage of rexec in tkinter demo.
........
r84264 | georg.brandl | 2010-08-22 22:23:38 +0200 (So, 22 Aug 2010) | 1 line
#9649 : fix default value description.
........
r84326 | georg.brandl | 2010-08-26 16:30:15 +0200 (Do, 26 Aug 2010) | 1 line
#9689 : add links from overview to in-depth class API descriptions.
........
r84327 | georg.brandl | 2010-08-26 16:30:56 +0200 (Do, 26 Aug 2010) | 1 line
#9681 : typo.
........
r84407 | georg.brandl | 2010-09-01 23:02:50 +0200 (Mi, 01 Sep 2010) | 1 line
#9677 : fix link.
........
r84476 | georg.brandl | 2010-09-04 00:14:52 +0200 (Sa, 04 Sep 2010) | 1 line
Use tabs consistently.
........
r84480 | georg.brandl | 2010-09-04 00:33:27 +0200 (Sa, 04 Sep 2010) | 1 line
More inclusive title.
........
r84481 | georg.brandl | 2010-09-04 00:36:22 +0200 (Sa, 04 Sep 2010) | 1 line
#9767 : doctest run over json docs.
........
r84482 | georg.brandl | 2010-09-04 00:40:02 +0200 (Sa, 04 Sep 2010) | 1 line
#9760 : clarify what context expression is.
........
r84484 | georg.brandl | 2010-09-04 00:49:27 +0200 (Sa, 04 Sep 2010) | 1 line
Fix missing word.
........
r84530 | georg.brandl | 2010-09-05 19:07:12 +0200 (So, 05 Sep 2010) | 1 line
#9747 : fix copy-paste error in getresgid() doc.
........
r84531 | georg.brandl | 2010-09-05 19:09:18 +0200 (So, 05 Sep 2010) | 1 line
#9776 : fix some spacing.
........
r84553 | georg.brandl | 2010-09-06 08:49:07 +0200 (Mo, 06 Sep 2010) | 1 line
#9780 : both { and } are not valid fill characters.
........
r84619 | georg.brandl | 2010-09-08 12:43:45 +0200 (Mi, 08 Sep 2010) | 1 line
Add Lukasz.
........
r84684 | georg.brandl | 2010-09-10 22:43:53 +0200 (Fr, 10 Sep 2010) | 1 line
release() is probably not the most important method
........
r84915 | georg.brandl | 2010-09-20 08:27:02 +0200 (Mo, 20 Sep 2010) | 1 line
Fix typo.
........
r84916 | georg.brandl | 2010-09-20 08:29:01 +0200 (Mo, 20 Sep 2010) | 1 line
Mention % as string formatting.
........
15 years ago
Georg Brandl
448f20b8b1
Fix typo.
15 years ago
Raymond Hettinger
2914308214
Issue #4570 : Clean-up tutorial example
16 years ago
Raymond Hettinger
afdeca980d
Issue #4570 : Clean-up tutorial example
16 years ago
Georg Brandl
ced2f2d9f9
Recorded merge of revisions 81410 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r81410 | georg.brandl | 2010-05-21 22:45:12 +0200 (Fr, 21 Mai 2010) | 1 line
Remove redundant example.
........
16 years ago
Georg Brandl
471ed00ae9
Remove redundant example.
16 years ago
Ezio Melotti
de414a2e91
Merged revisions 79525 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r79525 | ezio.melotti | 2010-03-31 10:45:32 +0300 (Wed, 31 Mar 2010) | 9 lines
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.
........
................
16 years ago
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.
........
16 years ago
Ezio Melotti
fc7b3d26b1
Remove paragraph about inefficiency of lists used as queues now that the example uses deque.
16 years ago
Ezio Melotti
eb72991fbb
Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list.
16 years ago
Georg Brandl
4c86cb31e2
Merged revisions 78859-78860,78952,79168-79169,79173,79176,79178-79179,79181,79184-79185,79192,79212 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78859 | georg.brandl | 2010-03-12 10:57:43 +0100 (Fr, 12 Mär 2010) | 1 line
Get rid of backticks.
........
r78860 | georg.brandl | 2010-03-12 11:02:03 +0100 (Fr, 12 Mär 2010) | 1 line
Fix warnings from "make check".
........
r78952 | georg.brandl | 2010-03-14 10:55:08 +0100 (So, 14 Mär 2010) | 1 line
#8137 : add iso-8859-16 to the standard encodings table.
........
r79168 | georg.brandl | 2010-03-21 10:01:27 +0100 (So, 21 Mär 2010) | 1 line
Fix some issues found by Jacques Ducasse on the docs list.
........
r79169 | georg.brandl | 2010-03-21 10:02:01 +0100 (So, 21 Mär 2010) | 1 line
Remove the "built-in objects" file. It only contained two paragraphs of which only one contained useful information, which belongs in the ref manual however.
........
r79173 | georg.brandl | 2010-03-21 10:09:38 +0100 (So, 21 Mär 2010) | 1 line
Document that GzipFile supports iteration.
........
r79176 | georg.brandl | 2010-03-21 10:17:41 +0100 (So, 21 Mär 2010) | 1 line
Introduce copy by slicing, used in later chapters.
........
r79178 | georg.brandl | 2010-03-21 10:28:16 +0100 (So, 21 Mär 2010) | 1 line
Clarify that for shell=True, the shell PID will be the child PID.
........
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.
........
r79181 | georg.brandl | 2010-03-21 10:51:16 +0100 (So, 21 Mär 2010) | 1 line
Update os.kill() emulation example for Windows to use ctypes.
........
r79184 | georg.brandl | 2010-03-21 10:58:36 +0100 (So, 21 Mär 2010) | 1 line
Update text for newest US DST regulation. The sample file already has the calculation right.
........
r79185 | georg.brandl | 2010-03-21 11:02:47 +0100 (So, 21 Mär 2010) | 1 line
Include structmember.h correctly.
........
r79192 | georg.brandl | 2010-03-21 12:50:58 +0100 (So, 21 Mär 2010) | 1 line
Remove leftover word.
........
r79212 | georg.brandl | 2010-03-21 20:01:38 +0100 (So, 21 Mär 2010) | 1 line
Fix plural.
........
16 years ago
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.
........
16 years ago
Georg Brandl
a39f2afe9b
Mention inefficiency of lists as queues, add link to collections.deque discussion.
16 years ago
Raymond Hettinger
f04545565a
Update advice on how to implement a queue.
16 years ago
Jesus Cea
585ad8ae5e
Merged revisions 69846 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69846 | mark.dickinson | 2009-02-21 21:27:01 +0100 (Sat, 21 Feb 2009) | 2 lines
Issue #5341 : Fix a variety of spelling errors.
........
17 years ago
Raymond Hettinger
8699aeaf34
The key-value pairs can be lists or tuples or any iterable.
17 years ago
Georg Brandl
fc11f27f61
Expand a bit on dict views.
17 years ago
Georg Brandl
10e0e30101
Fix markup.
17 years ago