Commit graph

79595 commits

Author SHA1 Message Date
Senthil Kumaran
6234cc0098 Reverting the changeset c31d700dea8b made for Issue #12921 2013-03-05 02:24:03 -08:00
Senthil Kumaran
24431f1802 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:26:33 -08:00
Senthil Kumaran
c37f835a43 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:23:44 -08:00
Senthil Kumaran
3fb066d286 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:22:57 -08:00
Senthil Kumaran
c74e764c21 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:21:13 -08:00
Raymond Hettinger
757408a2f3 merge 2013-03-05 02:16:45 -05:00
Raymond Hettinger
3e6aafe209 Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-05 02:15:01 -05:00
Raymond Hettinger
f7f8972a59 merge 2013-03-05 02:11:37 -05:00
Raymond Hettinger
2e8d9a799d Fix typo 2013-03-05 02:11:10 -05:00
Raymond Hettinger
e516604f7c merge 2013-03-05 01:37:02 -05:00
Raymond Hettinger
f6b26676bc Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-05 01:36:30 -05:00
Raymond Hettinger
975a8e8f76 Use LT in all comparisons 2013-03-05 01:17:57 -05:00
Ned Deily
eec152d217 Issue #16848: python-config now returns proper --ldflags values for OS X
framework builds.
2013-03-04 14:31:04 -08:00
Antoine Pitrou
221760a3aa Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:35:55 +01:00
Antoine Pitrou
31584e30ab Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:33:36 +01:00
Antoine Pitrou
44d5214927 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00
Antoine Pitrou
49e4dfeec8 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00
Benjamin Peterson
42f382facd merge 3.3 (#17328) 2013-03-04 09:48:30 -05:00
Benjamin Peterson
b1efa53662 fix possible setdefault refleak (closes #17328) 2013-03-04 09:47:50 -05:00
Ezio Melotti
a84ecc649b #17346: make sure pickle tests are run against all protocols. 2013-03-04 15:23:12 +02:00
Ezio Melotti
63f40d7af4 #17346: merge with 3.3. 2013-03-04 15:21:14 +02:00
Ezio Melotti
296069301a #17346: merge with 3.2. 2013-03-04 15:19:02 +02:00
Ezio Melotti
aaef34483c #17346: make sure pickle tests are run against all protocols. Initial patch by Marius Gedminas. 2013-03-04 15:17:56 +02:00
Raymond Hettinger
bb5f48008d Merge 2013-03-04 04:20:46 -05:00
Raymond Hettinger
352cc8cfc3 Another nit. 2013-03-04 04:19:09 -05:00
Raymond Hettinger
32e2ff5dc5 merge 2013-03-04 03:54:45 -05:00
Raymond Hettinger
f2c17a9276 Fix other re-entrancy nits for the lru_cache.
Keep references for oldkey and oldvalue so they can't
trigger a __del__ method to reenter our thread.

Move the cache[key]=link step to the end, after the link
data is in a consistent state.

Under exotic circumstances, the cache[key]=link step could
trigger reentrancy (i.e. the key would have to have a hash
exactly equal to that for another key in the cache and the
key would need a __eq__ method that makes a reentrant call
our cached function).
2013-03-04 03:34:09 -05:00
Raymond Hettinger
6c2078d545 merge 2013-03-04 02:58:40 -05:00
Raymond Hettinger
0392342673 Add test for RLock in the lru_cache(). 2013-03-04 02:52:50 -05:00
Raymond Hettinger
b6c65b2aff Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-04 02:20:31 -05:00
Nadeem Vawda
6386e17f39 Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. 2013-03-03 22:48:15 +01:00
Nadeem Vawda
ad246bfb71 Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. 2013-03-03 22:44:22 +01:00
Nadeem Vawda
7b39b9b51b Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. 2013-03-03 22:31:21 +01:00
Gregory P. Smith
b394c1dac8 Fixes Issue #16962: Use getdents64 instead of the obsolete getdents syscall
in the subprocess module on Linux.
2013-03-03 10:53:27 -08:00
Gregory P. Smith
255bf5b9ec Issue #16962: Use getdents64 instead of the obsolete getdents syscall in
the subprocess module on Linux.
2013-03-03 10:45:05 -08:00
Ezio Melotti
04a29554c1 #17032: The "global" in the "NameError: global name 'x' is not defined" error message has been removed. Patch by Ram Rachum. 2013-03-03 15:12:44 +02:00
Mark Dickinson
7cac1c25a1 Issue #16445: Fix potential segmentation fault when deleting an exception message. 2013-03-03 11:13:34 +00:00
Ezio Melotti
ee71f4a8a4 #17334: merge with 3.3. 2013-03-02 14:48:01 +02:00
Ezio Melotti
bce9a5d5cd #17334: test_index now works with unittest test discovery. Patch by Zachary Ware. 2013-03-02 14:47:07 +02:00
Ezio Melotti
5c67e22145 #17333: merge with 3.3. 2013-03-02 14:33:05 +02:00
Ezio Melotti
02bf701b25 #17333: test_imaplib now works with unittest test discovery. Patch by Zachary Ware. 2013-03-02 14:25:56 +02:00
Raymond Hettinger
a35e281200 Merge 2013-03-01 23:51:26 -08:00
Raymond Hettinger
4f4ba16677 Issue #17331: Use isidentifier() instead of isalnum() to check for valid identifiers. 2013-03-01 23:43:48 -08:00
Raymond Hettinger
794568f0ad Merge 2013-03-01 23:21:00 -08:00
Raymond Hettinger
409f663091 Remove dependency on dummy_threading (to solve a bootstrap problem). 2013-03-01 23:20:13 -08:00
Ezio Melotti
bf0428ebed Merge markup fixes in unittest doc from 3.3. 2013-03-01 21:28:23 +02:00
Ezio Melotti
aba4581ce3 Merge markup fixes in unittest doc from 3.2. 2013-03-01 21:28:06 +02:00
Ezio Melotti
fed69ba63c Fix markup in unittest doc. 2013-03-01 21:26:04 +02:00
Ezio Melotti
ff0deb0529 Fix markup in unittest doc. 2013-03-01 21:26:04 +02:00
Ezio Melotti
4b843a7492 #17312: unlink a file that test_aifc was leaving around. 2013-03-01 21:10:26 +02:00