Commit Graph

90294 Commits

Author SHA1 Message Date
Serhiy Storchaka 66d1865597 Merge heads 2015-09-04 08:34:01 +03:00
Serhiy Storchaka 58d83aca10 Merge 3.5.0 2015-09-04 08:27:39 +03:00
Serhiy Storchaka 4e63f7a2b4 Issue #24989: Fixed buffer overread in BytesIO.readline() if a position is
set beyond size.  Based on patch by John Leitch.
2015-09-04 07:48:19 +03:00
Zachary Ware b27f3c3e20 Issue #24986: Allow building Python without external libraries on Windows
This modifies the behavior of the '-e' flag to PCbuild\build.bat: when '-e'
is not supplied, no attempt will be made to build extension modules that
require external libraries, even if the external libraries are present.

Also adds '--no-<module>' flags to PCbuild\build.bat, where '<module>' is
one of 'ssl', 'tkinter', or 'bsddb', to allow skipping just those modules
(if '-e' is given).
2015-09-03 23:43:54 -05:00
Zachary Ware e74fe18ebb Allow PCbuild\rt.bat to accept unlimited arguments for regrtest.
This makes it possible to pass more than 4 tests by name through
Tools\buildbot\test.bat
2015-09-03 23:43:37 -05:00
Brett Cannon 84368127ed Merge from 3.5.0 for issue #24913 2015-09-03 15:34:57 -07:00
Serhiy Storchaka 594e54c765 Issue #24989: Fixed buffer overread in BytesIO.readline() if a position is
set beyond size.  Based on patch by John Leitch.
2015-09-04 01:08:03 +03:00
Victor Stinner 5b6917e60d Merge 3.4 (ICC) 2015-09-03 21:32:44 +02:00
Victor Stinner 528a9ab1f0 Don't use defined() in C preprocessor macros
The ICC compiler doesn't seem to support defined() in macro expansion. Example
of warning:

warning #3199: "defined" is always false in a macro expansion in Microsoft mode
2015-09-03 21:30:26 +02:00
Brett Cannon df6b544ff6 Issue #24913: Fix overrun error in deque.index().
Reported by John Leitch and Bryce Darling, patch by Raymond Hettinger.
2015-09-03 10:15:03 -07:00
Zachary Ware fda673d59f Issue #24974: Force fp-model precice in mpdecimal.c on Windows
As suggested by Steve Dower and approved by Stefan Krah.
2015-09-03 11:52:15 -05:00
Victor Stinner ca30b02abe Issue #24992: Fix error handling and a race condition (related to garbage
collection) in collections.OrderedDict constructor.

Patch reviewed by Serhiy Storchaka.
2015-09-03 17:50:04 +02:00
Victor Stinner 38b8ae0f5b Issue #24993: Handle import error in namereplace error handler
Handle PyCapsule_Import() failure (exception) in PyCodec_NameReplaceErrors():
return immedialty NULL.
2015-09-03 16:19:40 +02:00
Victor Stinner aba2466d09 Merge 3.4 (test_gdb) 2015-09-03 15:42:45 +02:00
Victor Stinner 479fea63e1 test_gdb: oops, the regex to parse the gdb version was still too strict 2015-09-03 15:42:26 +02:00
Victor Stinner c2b43d1fea Merge 3.4 (test_wsgiref)
The support import is not needed in Python 3.5
2015-09-03 12:15:27 +02:00
Victor Stinner a7b76e0cbe test_wsgiref: add missing import (support) 2015-09-03 12:14:25 +02:00
Senthil Kumaran b541e58b7a Merge with 3.5. Fix test_wsgiref execution from the test module. 2015-09-03 02:27:18 -07:00
Senthil Kumaran 22f2c0e215 Fix test_wsgiref execution from the test module. 2015-09-03 02:26:31 -07:00
Victor Stinner ccc546c658 Merge 3.4 (test_gdb) 2015-09-03 09:46:11 +02:00
Victor Stinner 26afae4019 test_gdb: fix regex to parse GDB version for 'GNU gdb 6.1.1 [FreeBSD]\n' 2015-09-03 09:45:53 +02:00
Terry Jan Reedy 379583e762 Merge with 3.4 2015-09-02 22:08:03 -04:00
Terry Jan Reedy ac5004f7ce Issue #21192: Change 'RUN' back to 'RESTART' when running editor file. 2015-09-02 22:07:44 -04:00
Victor Stinner 5ad5821d09 oops, rename pymonotonic_new() to pymonotonic()
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.
2015-09-03 00:14:58 +02:00
Victor Stinner c3c616c3d1 Issue #24707: Remove assertion in monotonic clock
Don't check anymore at runtime that the monotonic clock doesn't go backward.
Yes, it happens. It occurs sometimes each month on a Debian buildbot slave
running in a VM.

The problem is that Python cannot do anything useful if a monotonic clock goes
backward. It was decided in the PEP 418 to not fix the system, but only expose
the clock provided by the OS.
2015-09-03 00:13:46 +02:00
Victor Stinner 4912e7a3fd Merge 3.4 (test_warnings) 2015-09-03 00:09:26 +02:00
Victor Stinner 1c40552087 Fix test_warnings: don't modify warnings.filters
BaseTest now ensures that unittest.TestCase.assertWarns() uses the same
warnings module than warnings.catch_warnings(). Otherwise,
warnings.catch_warnings() will be unable to remove the added filter.
2015-09-03 00:07:47 +02:00
Victor Stinner 329ca7118f Merge 3.4 (test_gdb) 2015-09-02 23:21:03 +02:00
Victor Stinner 5b6b4a8c34 test_gdb: use subprocess.Popen context manager to fix ResourceWarning warnings
when the test is interrupted (or fail).
2015-09-02 23:19:55 +02:00
Victor Stinner 2f3ac1ea76 test_gdb: fix regex to parse gdb version for SUSE Linux Entreprise
Mention also the detected GDB version on verbose mode and on error (if the
major version is smaller than 7).
2015-09-02 23:12:14 +02:00
Zachary Ware 6732343ade Turn 'rem' comments into a real usage message in PCbuild/build.bat
Also fixes error in 'kill' target (already fixed in 2.7, somehow the fix
didn't make it to this branch).
2015-09-02 13:21:19 -05:00
Yury Selivanov 2051b84f44 Merge 3.5 heads (issue #24975) 2015-09-02 15:49:30 -04:00
Victor Stinner 44a25faf7c Merge 3.4 (asyncio doc) 2015-09-02 15:40:56 +02:00
Victor Stinner 5492d358e4 asyncio doc: fix subprocess sections 2015-09-02 15:39:01 +02:00
Yury Selivanov b3d531348c Issue #24975: Fix AST compilation for PEP 448 syntax. 2015-09-01 16:10:49 -04:00
Raymond Hettinger 502bf511b3 Improve tutorial suggestion for looping techniques 2015-09-01 02:33:02 -07:00
Yury Selivanov c52e41d6b9 Make asyncio provisional 2015-08-31 11:42:31 -04:00
Martin Panter e721b7cb8b Issue #24952: Merge 3.4 into 3.5 2015-08-31 03:25:34 +00:00
Martin Panter 31e7f50d4c Issue #24952: Clarify default argument of stack_size() in threading, _thread
Patch from Mattip.
2015-08-31 03:15:52 +00:00
Benjamin Peterson 1498461a7a merge 3.4 (#24963) 2015-08-30 14:42:49 -07:00
Benjamin Peterson 0612ffe8c8 fix spelling that was a bit confused (closes #24963) 2015-08-30 14:42:38 -07:00
Raymond Hettinger 9157545c11 merge 2015-08-30 09:15:36 -07:00
Raymond Hettinger 7a3602e7cf Issue #24931: Resolve __dict__ conflict in namedtuple subclasses. 2015-08-30 09:13:48 -07:00
Zachary Ware ce50802679 Issue #24272: Remove usage of default reST role from typing docs 2015-08-29 22:39:47 -05:00
Zachary Ware 072d432f3c Issue #24962: Merge 3.4 2015-08-29 22:26:54 -05:00
Zachary Ware 1a83746418 Issue #24962: Remove space from filename 2015-08-29 22:25:04 -05:00
Donald Stufft 3ed9bf85a6 Null Merge from 3.5.0 to 3.5.1 2015-08-29 18:00:26 -04:00
Donald Stufft c332e0946a Update setuptools to 18.2 and pip to 7.1.2 2015-08-29 13:57:46 -04:00
Zachary Ware 7503ca7b16 Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows 2015-08-28 23:52:31 -05:00
Serhiy Storchaka f0f55a00b7 Issue #24881: Fixed setting binary mode in Python implementation of FileIO
on Windows and Cygwin.  Patch from Akira Li.
2015-08-28 22:17:04 +03:00