Commit Graph

84842 Commits

Author SHA1 Message Date
Raymond Hettinger 3170d1cccb Issue #21421: Add __slots__ to the MappingViews ABCs. 2014-05-03 19:06:32 -07:00
Raymond Hettinger 90e9338383 Neaten-up a bit add add missing size change check. 2014-05-03 18:45:54 -07:00
Raymond Hettinger 871620d951 Simplify and speedup the internals of the heapq module. 2014-05-03 18:36:48 -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
Benjamin Peterson 39992d3043 do not expose known hash api in stable API 2014-05-03 19:39:15 -04:00
Raymond Hettinger 4b0b1accb5 Issue #21101: Eliminate double hashing in the C code for collections.Counter(). 2014-05-03 16:41:19 -07:00
Raymond Hettinger 4b74fba62f Issue 21101: Internal API for dict getitem and setitem where the hash value is known. 2014-05-03 16:32:11 -07:00
Raymond Hettinger 1b5eebcfa3 merge 2014-05-03 15:26:17 -07:00
Raymond Hettinger c9926088dd Issue 21375: Fix possible Py_ssizet overflow in heapq. 2014-05-03 15:22:07 -07:00
Victor Stinner af8fc645af Issue #21233: Oops, Fix _PyObject_Alloc(): initialize nbytes before going to
redirect.
2014-05-02 23:26:03 +02:00
Victor Stinner db067af12a Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
2014-05-02 22:31:14 +02:00
Victor Stinner d50c3f3f3a Issue #21393: random.c: on Windows, close the hCryptProv handle at exit 2014-05-02 22:06:44 +02: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 6b7786bac2 Use $type instead of $cls in the signature specification. 2014-05-02 14:34:11 +02: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
Martin v. Löwis b9e71d4a55 Merge with 3.4 2014-05-01 15:18:43 +02:00
Antoine Pitrou 161d695fb0 Issue #21377: PyBytes_Concat() now tries to concatenate in-place when the first argument has a reference count of 1.
Patch by Nikolaus Rath.
2014-05-01 14:36:20 +02:00
Martin v. Löwis 3d5c9e2c67 Update to 1.0.1g 2014-05-01 14:28:48 +02:00
Zachary Ware 991fd2888c Unite 'Build' sections of Misc/NEWS 2014-04-30 16:29:51 -05:00
Zachary Ware 45bc17b6b4 Issue #19962: The Windows build process now creates "python.bat"
in the root of the source tree, which passes all arguments through
to the most recently built interpreter.
2014-04-30 15:47:53 -05: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
Benjamin Peterson 5c2ac8c1c6 setup.py: report modules which built but import failed (closes #21282)
Patch by Lukas Vacek.
2014-04-30 11:06:16 -04:00
Gregory P. Smith 30a6df5b64 Document the subprocess Popen.args attribute (issue21353) 2014-04-29 11:34:15 -07:00
Gregory P. Smith d8ea56d26d Document the subprocess Popen.args attribute (issue21353) 2014-04-29 11:33:56 -07:00
Gregory P. Smith 024c5eecbc Document the subprocess Popen.args attribute (issue21353) 2014-04-29 11:33:23 -07:00
Stefan Krah 7c115f8aef Null merge. 2014-04-29 18:25:14 +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
Zachary Ware e83ce4b90f Closes #17386: Merge with 3.4 2014-04-29 09:47:39 -05:00
Zachary Ware a67b97f438 Issue #17386: Expand Doc/make.bat to be much more similar to Doc/Makefile 2014-04-29 09:45:33 -05:00
Zachary Ware 1de519c60d Issue #17386: Update Doc/README.txt to list all targets
supported by Doc/Makefile, as well as a bit of modernization,
cleanup, and notes about the difference between Unix and Windows.
2014-04-29 09:26:56 -05:00
Zachary Ware 9393fffa5f Issue #17386: List the 'htmlview' target in the Doc/Makefile help output. 2014-04-29 09:24:40 -05: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 92c4d45326 Add porting note for issue #20951. 2014-04-29 10:05:59 +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
Terry Jan Reedy 727a463aa6 Merge with 3.4 2014-04-29 01:19:41 -04:00
Terry Jan Reedy 9cc9026294 Issue #21055: Index (augmented) assignment symbols. 2014-04-29 01:19:17 -04:00
Terry Jan Reedy e9dcfd1870 Merge with 3.4 2014-04-29 00:59:19 -04:00
Terry Jan Reedy 7c895edabc Closes 21048: Index 'as' in import and with statements. 2014-04-29 00:58:56 -04:00