Commit graph

34685 commits

Author SHA1 Message Date
Raymond Hettinger
3170d1cccb Issue #21421: Add __slots__ to the MappingViews ABCs. 2014-05-03 19:06:32 -07:00
Benjamin Peterson
4ce5f3f203 improve idioms (closes #20642)
Patch by Claudiu Popa.
2014-05-03 20:22:00 -04:00
Benjamin Peterson
98baa14109 merge 3.4 2014-05-03 20:18:56 -04:00
Benjamin Peterson
3d678e3b12 use with blocks to make sure files are closed 2014-05-03 20:18:50 -04:00
Benjamin Peterson
644bb49a45 merge 3.4 (#21357) 2014-05-03 20:16:59 -04:00
Benjamin Peterson
f24600eb64 improve test coverage of filecmp (closes #21357)
Patch by Diana Clarke.
2014-05-03 20:07:16 -04:00
Zachary Ware
cb2ad801ac Closes #18604: Merge with 3.4 2014-05-02 10:52:12 -05:00
Zachary Ware
ceced6bfea Issue #18604: Consolidated checks for GUI availability.
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in tkinter.test.support.check_tk_availability.  Also, every platform
checks whether Tk can be instantiated (if the platform-specific checks
passed).
2014-05-02 10:51:07 -05:00
Stefan Krah
6b794b8b59 Fix typo and tests without docstrings. 2014-05-01 17:42:33 +02:00
Stefan Krah
5de1f82464 Issue #21407: _decimal now supports function signatures. 2014-05-01 15:53:42 +02:00
Stefan Krah
b151f8f60b Issue #10650: Remove the non-standard 'watchexp' parameter from the
Decimal.quantize() method in the Python version.  It had never been
present in the C version.
2014-04-30 19:15:38 +02:00
Stefan Krah
8fb74a35da Issue #21374: Fix pickling of DecimalTuple. 2014-04-29 18:24:50 +02:00
Stefan Krah
f1d4e42195 Issue #21374: Fix pickling of DecimalTuple. 2014-04-29 18:23:35 +02:00
Jesus Cea
ae43046b61 MERGE: Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris 2014-04-29 18:18:58 +02:00
Jesus Cea
da25109fbc Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris 2014-04-29 18:18:37 +02:00
Antoine Pitrou
32497f89bb Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
Patch by Anton Afanasyev.
2014-04-29 12:14:47 +02:00
Antoine Pitrou
26f82efe59 Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Antoine Pitrou
3f73e4c715 Fix failure in test_poplib after issue #20951. 2014-04-29 10:27:09 +02:00
Antoine Pitrou
b8503896ad Issue #21057: TextIOWrapper now allows the underlying binary stream's read() or read1() method to return an arbitrary bytes-like object (such as a memoryview).
Patch by Nikolaus Rath.
2014-04-29 10:14:02 +02:00
Antoine Pitrou
b4bebdafe3 Issue #20951: SSLSocket.send() now raises either SSLWantReadError or SSLWantWriteError on a non-blocking socket if the operation would block. Previously, it would return 0.
Patch by Nikolaus Rath.
2014-04-29 10:03:28 +02:00
Giampaolo Rodola'
7971286b6e merge heads 2014-04-29 02:04:14 +02:00
Giampaolo Rodola'
8af740c46a fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack. 2014-04-29 02:03:40 +02:00
Antoine Pitrou
05da1ef40a Issue #18727: improve test coverage of the csv module by testing for DictWriter.writerows.
Patch by Muhammad Jehanzeb.
2014-04-29 01:58:06 +02:00
Antoine Pitrou
b1e58440f8 Issue #9815: assertRaises now tries to clear references to local variables in the exception's traceback. 2014-04-29 01:25:07 +02:00
Antoine Pitrou
9681022f1e Issue #9815: assertRaises now tries to clear references to local variables in the exception's traceback. 2014-04-29 01:23:50 +02:00
Antoine Pitrou
6999441d62 Issue #20355: -W command line options now have higher priority than the PYTHONWARNINGS environment variable. Patch by Arfrever. 2014-04-29 00:56:08 +02:00
Antoine Pitrou
c695c95626 Issue #19940: ssl.cert_time_to_seconds() now interprets the given time string in the UTC timezone (as specified in RFC 5280), not the local timezone.
Patch by Akira.
2014-04-28 20:57:36 +02:00
Antoine Pitrou
3a74ce2088 Issue #13204: Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError. 2014-04-28 13:08:28 +02:00
Antoine Pitrou
871dfc41d3 Issue #13204: Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError. 2014-04-28 13:07:06 +02:00
Guido van Rossum
6cd08d6277 Merge 3.4 -> default: asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166. 2014-04-27 10:44:46 -07:00
Guido van Rossum
94ba146d11 asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166. 2014-04-27 10:44:22 -07:00
Guido van Rossum
a677c26c1f Merge 3.4 -> default: asyncio: Be careful accessing instance variables in __del__ (closes #21340). 2014-04-27 10:34:39 -07:00
Tim Golden
fbf963c064 Backed out changeset: 17df50df62c7 2014-04-27 18:35:36 +01:00
Guido van Rossum
83c1ddda46 asyncio: Be careful accessing instance variables in __del__ (closes #21340). 2014-04-27 10:33:58 -07:00
Tim Golden
4675d798bf Issue #18314 os.unlink will now remove junction points on Windows. Patch by Kim Gräsman. 2014-04-27 18:00:10 +01:00
Benjamin Peterson
4453cf576a merge 3.4 (#19385) 2014-04-26 16:57:11 -04:00
Benjamin Peterson
e3083d3ad5 make operations on closed dumb databases raise a consistent exception (closes #19385)
Patch by Claudiu Popa.
2014-04-26 16:56:52 -04:00
Benjamin Peterson
5e746f2373 merge 3.4 (#21355) 2014-04-26 13:36:35 -04:00
Benjamin Peterson
d4992dccfb shallow defaults to 'True' not '1' (closes #21355)
Patch by Diana Clarke.
2014-04-26 13:36:21 -04:00
Antoine Pitrou
4432cf45c6 Issue #21207: Detect when the os.urandom cached fd has been closed or replaced, and open it anew. 2014-04-26 14:35:19 +02:00
Antoine Pitrou
e472aeafc3 Issue #21207: Detect when the os.urandom cached fd has been closed or replaced, and open it anew. 2014-04-26 14:33:03 +02:00
Andrew Kuchling
1c71241523 Merge from 3.4 2014-04-25 09:35:26 -04:00
Andrew Kuchling
86fe53e976 #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
Benjamin Peterson
1184e266b9 do not override errors from descriptors on modules 2014-04-24 19:29:23 -04:00
Ethan Furman
7b9ff0e6da Issue8297: module attribute lookup failures now include module name in error message. 2014-04-24 14:47:47 -07:00
Zachary Ware
7101cb07ef Closes #21346: Merge with 3.4 2014-04-24 13:22:47 -05:00
Zachary Ware
dca807b8f5 Issue #21346: Fix typo, make message consistent in test_itertools.
Pointed out by Brian Kearns.
2014-04-24 13:22:05 -05:00
Gregory P. Smith
e7460ac378 fix the test on windows which has different return codes from killed
children.
2014-04-23 08:39:02 -07:00
Gregory P. Smith
ab2719f904 fix the test on windows which has different return codes from killed
children.
2014-04-23 08:38:36 -07:00
Gregory P. Smith
b218863012 subprocess's Popen.wait() is now thread safe so that multiple threads
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value.  Fixes issue #21291.
2014-04-23 00:38:22 -07:00