Commit graph

40995 commits

Author SHA1 Message Date
Serhiy Storchaka
64d84c60e2 Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module.  The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:28:30 +02:00
Serhiy Storchaka
1c9bd1d8ec Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module.  The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:27:17 +02:00
Serhiy Storchaka
eb20fcae14 Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module.  The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:26:14 +02:00
Serhiy Storchaka
1c3fdd900d Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module.  The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:20:09 +02:00
Serhiy Storchaka
07bcf05fcf Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module.  The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:17:46 +02:00
Serhiy Storchaka
b5c349d5ae Issue #28637: No longer use re in site.py.
This makes Python startup from a virtual environment a little faster.
2016-11-08 20:18:20 +02:00
Serhiy Storchaka
727ba7c6f4 Issue #28637: No longer use re in site.py.
This makes Python startup from a virtual environment a little faster.
2016-11-08 20:17:35 +02:00
Yury Selivanov
122b99dad4 Merge 3.6 (docs/inspect) 2016-11-08 12:23:26 -05:00
Yury Selivanov
4778e13148 docs/inspect: clarify iscoroutinefunction; add docs for isasyncgen* 2016-11-08 12:23:09 -05:00
Terry Jan Reedy
e83a64164e Merge with 3.6 2016-11-07 23:15:10 -05:00
Terry Jan Reedy
0180cf6684 Issue #28572: Use system-specific values for configdialog font test 2016-11-07 23:14:53 -05:00
Yury Selivanov
cb4f0c53ff Merge 3.6 (issue #28613) 2016-11-07 19:01:27 -05:00
Yury Selivanov
1994dd360b Merge 3.5 (issue #28613) 2016-11-07 19:01:14 -05:00
Yury Selivanov
6ea2b8fc8b Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop() 2016-11-07 19:00:46 -05:00
Victor Stinner
621d4a7c86 Merge 3.6 2016-11-08 00:44:53 +01:00
Victor Stinner
1ec1cd161b Issue #28637: Revert issue #28082, don't import enum in re
Importing the enum module in the re module slows down Python startup by 34%
when Python is run from a virtual environment, or more generally when the re
module is imported at startup but not the enum module.
2016-11-08 00:42:46 +01:00
Eric V. Smith
9a8e569865 Merge from 3.6. 2016-11-07 17:57:48 -05:00
Eric V. Smith
9b88fdf4f0 Fixed issue #28633: segfault when concatenating bytes literal and f-string. 2016-11-07 17:54:01 -05:00
Terry Jan Reedy
25c28c901a Merge with 3.6 2016-11-07 17:15:16 -05:00
Terry Jan Reedy
f46b7823e6 Issue #28572: Add 10% to coverage of IDLE's test_configdialog.
Update and augment description of the configuration system.
2016-11-07 17:15:01 -05:00
Yury Selivanov
884edfcc83 Merge 3.6 (issue #28634) 2016-11-07 16:07:58 -05:00
Yury Selivanov
6130c0271f Merge 3.5 (issue #28634) 2016-11-07 16:07:30 -05:00
Yury Selivanov
49d6b8c0c3 Issue #28634: Fix asyncio.isfuture() to support mocks 2016-11-07 16:00:50 -05:00
Steve Dower
257a4c1503 Closes #27781: Removes special cases for the experimental aspect of PEP 529 2016-11-06 19:35:24 -08:00
Steve Dower
78057b4159 Closes #27781: Removes special cases for the experimental aspect of PEP 529 2016-11-06 19:35:08 -08:00
Guido van Rossum
a80b9c51e1 issue #28622: Remove redundant variable annotation test from test_grammar. Ivan L. (3.6->3.7) 2016-11-06 18:26:08 -08:00
Guido van Rossum
f570d0f117 issue #28622: Remove redundant variable annotation test from test_grammar. Ivan L. 2016-11-06 18:25:39 -08:00
Serhiy Storchaka
85bcf37e15 Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
2016-11-06 18:47:35 +02:00
Serhiy Storchaka
60e49aa756 Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
2016-11-06 18:47:03 +02:00
Serhiy Storchaka
24411f8a8d Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
2016-11-06 18:44:42 +02:00
Jason R. Coombs
692b97c848 Merge with 3.6 2016-11-06 11:27:50 -05:00
Jason R. Coombs
1c92a76a69 Update test_no_escapes_for_braces to clarify behavior with a docstring and expressions that clearly are not evaluated. 2016-11-06 11:25:54 -05:00
Jason R. Coombs
32d93b2dc8 Merge with 3.6 2016-11-06 11:16:42 -05:00
Jason R. Coombs
da25abf712 Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590. 2016-11-06 11:14:48 -05:00
Jason R. Coombs
45cab8ccdd Add an additional test with a newline, one that's very similar to test_parens_in_expressions, but because the newline is not a literal newline, but a backslash en, this error is triggered. 2016-11-06 11:01:08 -05:00
Serhiy Storchaka
f0b311bd73 Issue #28123: _PyDict_GetItem_KnownHash() now can raise an exception as
PyDict_GetItemWithError().  Patch by Xiang Zhang.
2016-11-06 13:18:24 +02:00
Martin Panter
cee93c3b73 Issue #28485: Merge single-threading fix from 3.5 into 3.6 2016-11-05 01:35:25 +00:00
Martin Panter
88281ceed0 Issue #28485: Check for negative workers even without ProcessPoolExecutor
This matches the documentation, and passes the test suite when multithreading
is disabled.
2016-11-05 01:11:36 +00:00
Yury Selivanov
69312fa4a2 Merge 3.5 (issue #28613) 2016-11-04 14:30:11 -04:00
Yury Selivanov
600a349781 Issue #28613: Fix get_event_loop() to return the current loop
when called from coroutines or callbacks.
2016-11-04 14:29:28 -04:00
Yury Selivanov
c5420492cf asyncio: Sync with upstream 2016-11-03 15:35:23 -07:00
Yury Selivanov
a6fbcd19ac Merge 3.5 (issue #28600) 2016-11-03 15:10:11 -07:00
Yury Selivanov
491a912659 Issue #28600: Optimize loop.call_soon().
Run expensive type checks only in debug mode.  In addition, stop
supporting passing handles to loop.run_in_executor.
2016-11-03 15:09:24 -07:00
Donald Stufft
c96b8fcf25 Allow ensurepip even when ssl is unavailable 2016-11-02 20:32:37 -04:00
Donald Stufft
f81d60ba68 Merge updated pip/setuptools from 3.5 2016-11-02 15:55:01 -04:00
Donald Stufft
2af4144b7f Merge new pip/setuptools from 3.4 2016-11-02 15:53:58 -04:00
Donald Stufft
20a587bd67 Upgrade pip to 9.0 and setuptools to 28.7.1 2016-11-02 15:42:49 -04:00
INADA Naoki
93f26f794d Issue #28583: PyDict_SetDefault didn't combine split table when needed.
Patch by Xiang Zhang.
2016-11-02 18:45:16 +09:00
Raymond Hettinger
8567e58ae3 Minor code beautification 2016-11-01 22:23:11 -07:00
Ned Deily
b02f2e1298 Update pydoc topics for 3.6.0b3 2016-10-31 20:39:38 -04:00