Benjamin Peterson
59b6abd38c
merge 3.3 ( #27758 )
2016-08-13 17:21:22 -07:00
Benjamin Peterson
6e01d90cc8
check for overflow in join_append_data ( closes #27758 )
...
Reported by Thomas E. Hybel
2016-08-13 17:17:06 -07:00
Brett Cannon
4a2360d3f7
Issue #25805 : Skip a test for test_pkgutil when __name__ == __main__.
...
Thanks to SilentGhost for the patch.
2016-08-12 10:53:53 -07:00
Martin Panter
c57e4d16ea
Issue #25825 : Merge AIX fix from 3.5
2016-08-12 13:26:01 +00:00
Martin Panter
5401e87b01
Issue #25825 : Fix references to Modules/python.exp
...
These were incorrectly changed in revision 88a532a31eb3.
2016-08-12 13:21:05 +00:00
Gregory P. Smith
50abe877ee
Issue #27664 : Add to concurrent.futures.thread.ThreadPoolExecutor()
...
the ability to specify a thread name prefix.
2016-08-07 10:19:20 -07:00
Gregory P. Smith
d0d24fd1ae
Issue #26750 : unittest.mock.create_autospec() now works properly for
...
subclasses of property() and other data descriptors. Removes the never
publicly used, never documented unittest.mock.DescriptorTypes tuple.
2016-08-07 09:06:27 -07:00
Gregory P. Smith
9854789efe
Issue #26750 : unittest.mock.create_autospec() now works properly
...
for subclasses of property() and other data descriptors.
2016-08-07 08:52:26 -07:00
Serhiy Storchaka
febc332056
Issue #26754 : Undocumented support of general bytes-like objects
...
as path in compile() and similar functions is now deprecated.
2016-08-06 23:29:29 +03:00
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
...
as paths in os functions is now deprecated.
2016-08-06 23:22:08 +03:00
Ethan Furman
73fc586d9f
Add AutoEnum: automatically provides next value if missing. Issue 26988.
2016-08-05 16:03:16 -07:00
Martin Panter
02b75abf73
Merge spelling and grammar fixes from 3.5
2016-08-05 01:51:39 +00:00
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
2016-08-04 13:07:31 +00:00
Martin Panter
70214ad55d
Issue #17599 : Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflict
...
The conflict occurs with Min GW, which already defines REPARSE_DATA_BUFFER.
Also, Min GW uses a lowercase <windows.h> filename.
2016-08-04 02:38:59 +00:00
Martin Panter
0c859f362c
Issue #27641 : Merge cross-compiling improvement from 3.5
2016-08-04 01:53:40 +00:00
Alexander Belopolsky
43746c3770
Closes #27661 : Added tzinfo keyword argument to datetime.combine.
2016-08-02 17:49:30 -04:00
Serhiy Storchaka
133138a284
Issue #22557 : Now importing already imported modules is up to 2.5 times faster.
2016-08-02 22:51:21 +03:00
Senthil Kumaran
cde03fa038
[merge from 3.5] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:51:13 -07:00
Senthil Kumaran
7bfbd1d3c5
merge heads
2016-07-30 23:48:19 -07:00
Senthil Kumaran
17742f2d45
[merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:39:06 -07:00
Senthil Kumaran
436fe5a447
[merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:34:34 -07:00
Senthil Kumaran
4cbb23f8f2
Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:24:16 -07:00
Benjamin Peterson
bf5868d2c5
merge 3.5 ( #27656 )
2016-07-30 23:22:24 -07:00
Benjamin Peterson
dbaa559b7f
all SCHED_ constants are optional ( closes #27656 )
2016-07-30 23:21:50 -07:00
Xavier de Gaye
6074f217db
(merge from 3.5) Issue #27453 : CPP invocation in configure must use CPPFLAGS.
...
Patch by Chi Hsuan Yen.
2016-07-30 11:36:32 +02:00
Xavier de Gaye
3a32bdfaa7
Issue #27453 : CPP invocation in configure must use CPPFLAGS.
...
Patch by Chi Hsuan Yen.
2016-07-30 11:28:35 +02:00
Nick Coghlan
d78448e912
Issue #27366 : Implement PEP 487
...
- __init_subclass__ called when new subclasses defined
- __set_name__ called when descriptors are part of a
class definition
2016-07-30 16:26:03 +10:00
Martin Panter
43a94a7e2f
Issue #27641 : Comment out regeneration rules when cross compiling
2016-07-29 05:52:32 +00:00
Martin Panter
d2f87472fe
Issue #17596 : MINGW: add wincrypt.h in Python/random.c
...
Based on patch by Roumen Petrov.
2016-07-29 04:00:44 +00:00
Zachary Ware
28c3184d8d
Issue #27647 : Update Windows build to Tcl/Tk 8.6.6
2016-07-28 18:39:11 -05:00
Victor Stinner
6276b47fd5
Merge 3.5 (issue #27404 )
2016-07-28 17:08:52 +02:00
Victor Stinner
4a865a35cd
NEWS: tag security related changes with [Security] prefix
...
Issue #27404 .
2016-07-28 17:06:25 +02:00
Martin Panter
2faa65a10d
Issue #23943 : Merge spelling fixes from 3.5
2016-07-28 03:53:59 +00:00
Martin Panter
3e5b1d3cf5
Issue #23943 : Restore extra fixes lost in merge 4fb2075952a4
2016-07-28 03:48:29 +00:00
Martin Panter
8bde911115
Issue #27626 : Merge spelling fixes from 3.5
2016-07-28 01:30:58 +00:00
Martin Panter
4b53359090
Issue #27490 : Merge pgen cross-compile logic from 3.5
2016-07-28 01:30:06 +00:00
Martin Panter
eac67be948
Issue #27490 : Do not build pgen when cross-compiling
...
The dependendency on the $(PGEN) variable must only be
set when not cross-compiling. When cross-compiling,
$(PGEN) will not be used, so no need to build it.
Patch by Thomas Perl.
2016-07-28 01:28:27 +00:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Xavier de Gaye
8d4989687c
(merge from 3.5) Issue #26662 : Set PYTHON_FOR_GEN in configure
...
as the Python program to be used for file generation during the build.
2016-07-26 12:55:20 +02:00
Xavier de Gaye
fd0d5939bd
Issue #26662 : Set PYTHON_FOR_GEN in configure
...
as the Python program to be used for file generation during the build.
2016-07-26 12:48:08 +02:00
Martin Panter
b93d8637a6
Issue #1621 : Avoid signed overflow in list and tuple operations
...
Patch by Xiang Zhang.
2016-07-25 02:39:20 +00:00
Martin Panter
32d2ce3561
Issue #27581 : Merge overflow fix from 3.5
2016-07-25 03:31:29 +00:00
Martin Panter
e8db861f47
Issue #27581 : Don’t rely on overflow wrapping in PySequence_Tuple()
...
Patch by Xiang Zhang.
2016-07-25 02:30:05 +00:00
Martin Panter
996d72bccf
Issue #7063 : Remove dead code from array slice handling
...
Patch by Chuck.
2016-07-25 02:21:14 +00:00
Steve Dower
05338267ab
Issue #27610 : Adds PEP 514 metadata to Windows installer
2016-07-24 18:04:29 -07:00
Steve Dower
1f7480a67e
Fixes bad Misc/NEWS merge
2016-07-23 08:04:11 -07:00
Steve Dower
edddc2704c
Issue #27469 : Adds a shell extension to the launcher so that drag and drop works correctly.
2016-07-23 08:02:02 -07:00
Martin Panter
525a949251
Issue #27130 : Merge zlib 64-bit fixes from 3.5
2016-07-23 03:39:49 +00:00
Martin Panter
84544c1020
Issue #27130 : Fix handling of buffers exceeding UINT_MAX in “zlib” module
...
Patch by Xiang Zhang.
2016-07-23 03:02:07 +00:00
Alexander Belopolsky
5d0c598382
Closes issue #24773 : Implement PEP 495 (Local Time Disambiguation).
2016-07-22 18:47:04 -04:00
Xavier de Gaye
d141531eb5
Issue #27472 : Add test.support.unix_shell as the path to the default shell.
2016-07-22 12:15:29 +02:00
Zachary Ware
de85ed69f4
Closes #25393 : Merge with 3.5
2016-07-19 16:46:09 -05:00
Zachary Ware
48e3f98206
Issue #25393 : Fix probable copy/paste error in resource docs
...
Patch by Alakshendra Yadav.
2016-07-19 16:41:20 -05:00
Berker Peksag
fe8d966657
Issue #27567 : Expose the POLLRDHUP constant in the select module
2016-07-19 21:09:26 +03:00
Benjamin Peterson
a1ea9c813f
add mising word
2016-07-18 22:08:19 -07:00
Benjamin Peterson
0715ce358a
add EPOLLEXCLUSIVE
2016-07-18 22:02:44 -07:00
Benjamin Peterson
96e97169cc
expose EPOLLRDHUP ( closes #27567 )
2016-07-18 21:47:39 -07:00
Martin Panter
6fb90905e2
Issue #1621 : Avoid signed int negation overflow in audioop
2016-07-19 03:05:42 +00:00
Martin Panter
bd09f15b69
Issue #27507 : Merge overflow check from 3.5
2016-07-18 08:18:32 +00:00
Martin Panter
371731ebfd
Issue #27507 : Check for integer overflow in bytearray.extend()
...
Patch by Xiang Zhang.
2016-07-18 07:53:13 +00:00
Steve Dower
b6467902aa
Issue #27309 : Enables proper Windows styles in python[w].exe manifest.
2016-07-17 21:40:06 -07:00
Steve Dower
25f9cf479f
Issue #27309 : Enables proper Windows styles in python[w].exe manifest.
2016-07-17 21:39:13 -07:00
Steve Dower
262dc1e71d
Issue #27533 : Release GIL in nt._isdir
2016-07-17 20:50:28 -07:00
Steve Dower
b22a67737e
Issue #27533 : Release GIL in nt._isdir
2016-07-17 20:49:38 -07:00
Serhiy Storchaka
7905f99a27
Issue #27419 : Standard __import__() no longer look up "__import__" in globals
...
or builtins for importing submodules or "from import". Fixed a crash if
raise a warning about unabling to resolve package from __spec__ or
__package__.
2016-07-17 12:51:34 +03:00
Serhiy Storchaka
b3b65e618c
Issue #27419 : Standard __import__() no longer look up "__import__" in globals
...
or builtins for importing submodules or "from import". Fixed handling an
error of non-string package name.
2016-07-17 12:47:17 +03:00
Serhiy Storchaka
3410c01d83
Issue #17711 : Fixed unpickling by the persistent ID with protocol 0.
...
Original patch by Alexandre Vassalotti.
2016-07-17 11:35:35 +03:00
Serhiy Storchaka
dec25afab1
Issue #17711 : Fixed unpickling by the persistent ID with protocol 0.
...
Original patch by Alexandre Vassalotti.
2016-07-17 11:24:17 +03:00
Steve Dower
df450d1a18
Issue #27469 : Adds a shell extension to the launcher so that drag and drop works correctly.
2016-07-16 16:17:33 -07:00
R David Murray
7266964968
Merge: #27522 : break unintended cycle in feedparser.
2016-07-15 21:30:13 -04:00
R David Murray
702b0460d2
#27522 : break unintended cycle in feedparser.
...
Patch by Costas.
2016-07-15 21:29:13 -04:00
Brett Cannon
b3e73b30ff
Merge for #27083
2016-07-15 11:55:21 -07:00
Brett Cannon
a47a7a5bf8
Issue #27083 : Respect the PYTHONCASEOK environment variable under
...
Windows.
Originally only b'PYTHONCASEOK' was being checked for in os.environ,
but that won't work under Windows where all environment variables are
strings (on OS X they are bytes).
Thanks to Eryk Sun for the bug report.
2016-07-15 11:54:38 -07:00
Brett Cannon
896e87a99c
Merge for #26844
2016-07-15 10:59:11 -07:00
Brett Cannon
f76457e122
Issue #26844 : Fix imp.find_module() to have the exception related to
...
type issues be about 'path' instead of 'name'.
Thanks to Lev Maximov for the patch.
2016-07-15 10:58:54 -07:00
Brett Cannon
044283a426
Issue #27512 : Don't segfault when os.fspath() calls an object whose
...
__fspath__() raises an exception.
Thanks to Xiang Zhang for the patch.
2016-07-15 10:41:49 -07:00
Benjamin Peterson
ce7b27d169
merge 3.5 ( #27514 )
2016-07-14 22:02:09 -07:00
Benjamin Peterson
e09ed5419b
make too many nested blocks be a SyntaxError instead of a SystemError ( closes #27514 )
...
Patch by Ammar Askar.
2016-07-14 22:00:03 -07:00
Benjamin Peterson
ab078e9ed1
Backed out changeset af29d89083b3 ( closes #25548 ) ( closes #27498 )
2016-07-13 21:13:29 -07:00
Martin Panter
fb4f8257bf
Issue #27369 : Merge test_pyexpat from 3.5
2016-07-14 03:36:53 +00:00
Martin Panter
c29df658a7
Issue #27369 : Merge test_pyexpat from 3.4 into 3.5
2016-07-14 03:35:15 +00:00
Martin Panter
b7b5d35545
Issue #27369 : Merge test_pyexpat from 3.3 into 3.4
2016-07-14 02:09:17 +00:00
Martin Panter
d27a7c1f22
Issue #27369 : Merge test_pyexpat from 3.2 into 3.3
2016-07-14 01:42:53 +00:00
Martin Panter
076ca6c3c8
Issue #27369 : Don’t test error message detail that changed in Expat 2.2.0
2016-07-14 01:31:46 +00:00
Martin Panter
2cdcaf1353
Issue #22758 : Move NEWS entry to Library section
2016-07-14 01:17:03 +00:00
Yury Selivanov
e824315e2b
Merge 3.5 (issue #27392 )
2016-07-12 18:24:25 -04:00
Yury Selivanov
252e9ed974
Issue #27392 : Add loop.connect_accepted_socket().
...
Patch by Jim Fulton.
2016-07-12 18:23:10 -04:00
Ned Deily
b209392b0e
Start 3.6.0a4
2016-07-12 01:14:53 -04:00
Ned Deily
a731a68cf6
Version bump for 3.6.0a3
2016-07-11 15:38:40 -04:00
Martin Panter
702f4f5d6f
Issue #23804 : Merge spelling and NEWS fixes from 3.5
2016-07-11 12:54:44 +00:00
Martin Panter
204bf0b9ae
English spelling and grammar fixes
2016-07-11 07:51:37 +00:00
Martin Panter
0ca0edee33
Restore NEWS entries lost in revision 8145f25f26aa
2016-07-11 12:43:38 +00:00
Martin Panter
7386268ffd
Issue #23804 : Merge SSL recv() fix from 3.5
2016-07-11 01:32:09 +00:00
Terry Jan Reedy
4bf9c51f9b
IDLE NEWS items.
2016-07-10 20:30:43 -04:00
Martin Panter
bed7f1a512
Issue #23804 : Fix SSL zero-length recv() calls to not block and raise EOF
2016-07-11 00:17:13 +00:00
Serhiy Storchaka
ca0da9b0a3
Issue #27473 : Fixed possible integer overflow in bytes and bytearray
...
concatenations. Patch by Xiang Zhang.
2016-07-10 20:51:35 +03:00
Serhiy Storchaka
06cfb0cd70
Issue #27473 : Fixed possible integer overflow in bytes and bytearray
...
concatenations. Patch by Xiang Zhang.
2016-07-10 20:48:43 +03:00
R David Murray
5f21f43af7
#22758 : fix regression in handling of secure cookies.
...
This backports the fix from #16611 , per discussion with the release
manager.
2016-07-10 13:32:43 -04:00
Xavier de Gaye
20bd3b070a
Issue #27027 : Added test.support.is_android that is True when this is an
...
Android build.
2016-07-10 18:20:15 +02:00
Senthil Kumaran
290b42de73
[merge from 3.5] - Issue #27466 : Change time format returned by
...
http.cookie.time2netscape, confirming the netscape cookie format.
2016-07-10 06:49:49 -07:00