Commit graph

75700 commits

Author SHA1 Message Date
Ezio Melotti
820f2bdaf9 Update section about dir() in the tutorial. 2012-11-17 12:46:40 +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
Ezio Melotti
9236a4e99d #16470: mention set and dict comprehension in the tutorial. Patch by Yongzhi Pan. 2012-11-17 12:02:30 +02:00
Jesus Cea
fc1a63620e MERGE: Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:42:41 +01:00
Jesus Cea
e4b863982c Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:41:54 +01:00
Jesus Cea
f34e4de3f5 Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:38:17 +01:00
Ezio Melotti
eb24b44ef4 #16478: merge with 3.2. 2012-11-16 13:17:42 +02:00
Ezio Melotti
103f17ef91 #16478: use floor division in tabnanny and fix a ResourceWarning. Patch by Serhiy Storchaka. 2012-11-16 13:17:08 +02:00
Richard Oudkerk
021f4c2ecc Issue #16481: multiprocessing no longer leaks process handles on Windows. 2012-11-15 18:16:35 +00:00
Andrew Svetlov
e2cf03e499 Issue #16144: Fix misleading sentence in reference/import.
Patch by Manuel Pégourié-Gonnard
2012-11-15 16:28:21 +02:00
Georg Brandl
526b553608 Remove versionadded from the tutorial, at a location where it produces more questions than it answers. 2012-11-15 07:10:27 +01:00
Philip Jenvey
21c95ebf7f merge 3.2 2012-11-14 14:49:49 -08:00
Philip Jenvey
b37ac8eaf6 don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine) 2012-11-14 14:37:24 -08:00
Chris Jerdonek
080123119d Backport from 3.2: update PyPI docs regarding listing versions (issue #16400). 2012-11-14 12:36:53 -08:00
Chris Jerdonek
251269ccc8 Merge from 3.2: update the PyPI docs regarding listing versions (issue #16400). 2012-11-14 12:24:21 -08:00
Chris Jerdonek
f9e49eaefc Update the description of which package versions PyPI displays (issue #16400). 2012-11-14 12:12:30 -08:00
Vinay Sajip
87ed599b8a Issue #16378: Updated docstrings to reflect the defaults present in the code. 2012-11-14 11:18:35 +00:00
Chris Jerdonek
9e173ebde2 Link to "XRange Type" section in xrange() built-in function documentation. 2012-11-14 02:13:28 -08:00
Philip Jenvey
000bd4254f merge 3.2 2012-11-13 12:27:56 -08:00
Philip Jenvey
3acc7ef1c5 add gc_collects to weakref tests 2012-11-13 12:26:31 -08:00
Benjamin Peterson
2a0e226131 recompile importlib.h 2012-11-12 17:02:32 -05:00
Benjamin Peterson
debf64ce2b missing letter 2012-11-12 16:48:17 -05:00
Stefan Krah
4a3a3f3bda Backport 5db6d9ddf6e8. 2012-11-12 20:35:29 +01:00
Stefan Krah
6df5cae49a Issue #15835: Define PATH_MAX on HP-UX. 2012-11-12 20:14:36 +01:00
Georg Brandl
8a0d58bb3d Use 2.x "print" syntax for this example. 2012-11-12 19:25:55 +01:00
Victor Stinner
e667e98faa Issue #16218, #16444: Backport improvment on tests for non-ASCII characters 2012-11-12 01:23:15 +01:00
Antoine Pitrou
37bfa4e7ec Add a test for hashing of unaligned memory buffers (from issue #16427). 2012-11-11 20:10:48 +01:00
Antoine Pitrou
1de1394f54 Merge heads 2012-11-11 19:40:49 +01:00
Antoine Pitrou
cc7715f8ae Merge heads 2012-11-11 19:40:38 +01:00
Antoine Pitrou
f6a50cfa07 Issue #16453: Fix equality testing of dead weakref objects.
Also add tests for ordering and hashing.
2012-11-11 19:37:41 +01:00
Antoine Pitrou
b704eab599 Issue #16453: Fix equality testing of dead weakref objects.
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Antoine Pitrou
e11fecb5a9 Issue #16453: Fix equality testing of dead weakref objects.
Also add tests for ordering and hashing.
2012-11-11 19:36:51 +01:00
Gregory P. Smith
027d6fcebd remove an obsolete comment 2012-11-11 10:13:06 -08:00
Gregory P. Smith
859035d2ef Refactor test_preexec_errpipe to not create an uncollectable reference cycle. 2012-11-11 10:00:49 -08:00
Gregory P. Smith
e27faac45f Refactor test_preexec_errpipe to not create an uncollectable reference cycle. 2012-11-11 09:59:27 -08:00
Gregory P. Smith
f047ba83e8 Refactor test_preexec_errpipe to not create an uncollectable reference cycle. 2012-11-11 09:49:02 -08:00
Nadeem Vawda
6ff262e18f Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
2012-11-11 14:14:47 +01:00
Nadeem Vawda
19e568d254 Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
2012-11-11 14:04:14 +01:00
Nadeem Vawda
99f9b8df98 Issue #15677: Also fix docstrings in zlib module. 2012-11-11 14:01:23 +01:00
Nadeem Vawda
04050b80b1 Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
2012-11-11 13:52:10 +01:00
Gregory P. Smith
c3197254ac whitespace fix 2012-11-11 02:01:56 -08:00
Gregory P. Smith
211248b214 Fix issue #16140 bug that the fix to issue #16327 added - don't double
close subprocess.PIPE file descriptors when the child encounters an
error prior to exec.
2012-11-11 02:00:49 -08:00
Gregory P. Smith
c8ac03d936 Fixes issue #16140: The subprocess module no longer double closes its
child subprocess.PIPE parent file descriptors on child error prior to
exec().

This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
2012-11-11 01:38:18 -08:00
Gregory P. Smith
12489d98e6 Fixes issue #16140: The subprocess module no longer double closes its
child subprocess.PIPE parent file descriptors on child error prior to
exec().

This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
2012-11-11 01:37:02 -08:00
Gregory P. Smith
6893732c35 Remove the subprocess "bad exception data" warning (formerly a print!)
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".

This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
2012-11-11 00:04:52 -08:00
Gregory P. Smith
3aee222122 Remove the subprocess "bad exception data" warning (formerly a print!)
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".

This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
2012-11-11 00:04:13 -08:00
Gregory P. Smith
1f83866ecd Rename a local variable for readability and change a "this can't
happen" print() call into a RuntimeWarning as it should've been in the
first place.  Because nothing should ever cause unexpected stdout output.
2012-11-10 23:33:56 -08:00
Gregory P. Smith
f44c9da166 Rename a local variable for readability and change a "this can't
happen" print() call into a RuntimeWarning as it should've been in the
first place.  Because nothing should ever cause unexpected stdout output.
2012-11-10 23:33:17 -08:00
Gregory P. Smith
9d3b6e9822 Fixes issue #16327: The subprocess module no longer leaks file descriptors
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00