Commit graph

90309 commits

Author SHA1 Message Date
Steve Dower
f3f2d372e8 Issue #24910: Windows MSIs now have unique display names. 2015-09-05 12:47:06 -07:00
Guido van Rossum
65d3643085 Null merge (Larry's 3.5 -> 3.5.1). 2015-09-04 12:54:36 -07:00
Guido van Rossum
1b66910537 Fix issue #24635. 2015-09-04 12:15:54 -07:00
Guido van Rossum
647bae6c52 Issue #24635: Fixed flakiness in test_typing.py. 2015-09-04 12:00:06 -07:00
Victor Stinner
874dbe895d Merge 3.4 (create_stdio) 2015-09-04 17:29:57 +02:00
Victor Stinner
6fb5bae252 Fix race condition in create_stdio()
Issue #24891: Fix a race condition at Python startup if the file descriptor
of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set
to None if the creation of the object failed, instead of raising an OSError
exception. Initial patch written by Marco Paolini.
2015-09-04 17:27:49 +02:00
R David Murray
d529ebb438 Merge: #24998: fix cut and paste error in subprocess example. 2015-09-04 10:02:27 -04:00
R David Murray
17227a7334 #24998: fix cut and paste error in subprocess example. 2015-09-04 10:01:19 -04:00
Terry Jan Reedy
9f5bf0203f Merge with 3.4 2015-09-04 04:38:17 -04:00
Terry Jan Reedy
4fda56f44b Issue #24745: Prevent IDLE initialization crash with Tk 8.4; patch by Ned Deily. 2015-09-04 04:37:56 -04:00
Terry Jan Reedy
3ac1d8206a Merge 3.5.0 into 3.5.1 2015-09-04 04:16:42 -04:00
Zachary Ware
a6deff2588 Issue #24986: Save some bandwidth from svn.python.org
Don't download sources that won't be used.
2015-09-04 01:10:23 -05:00
Serhiy Storchaka
6e87576571 Fixed merge error. 2015-09-04 08:38:45 +03:00
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
Larry Hastings
9f9a00afc0 Merged in storchaka/cpython350 (pull request #13)
Issue #24989
2015-09-03 22:12:08 -07: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
Terry Jan Reedy
a43de00b74 Issue #21192: Change 'RUN' back to 'RESTART' when running editor file. 2015-09-03 21:26:12 -04: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