Commit graph

22930 commits

Author SHA1 Message Date
Yury Selivanov
3e05a9c2b0 Merge 3.6 (issue #28653) 2016-11-09 18:57:00 -05:00
Yury Selivanov
0a66a1cdd6 Merge 3.6 (issue #28653) 2016-11-09 18:56:26 -05:00
Yury Selivanov
46a02db90b Issue #28653: Fix a refleak in functools.lru_cache. 2016-11-09 18:55:45 -05:00
Serhiy Storchaka
1f9449589e Issue #28649: Clear the typing module caches when search for reference leaks. 2016-11-09 23:52:40 +02:00
Serhiy Storchaka
04c954d275 Issue #28649: Clear the typing module caches when search for reference leaks. 2016-11-09 23:51:54 +02:00
Serhiy Storchaka
28f42fd4f8 Issue #28649: Clear the typing module caches when search for reference leaks. 2016-11-09 23:49:02 +02:00
Guido van Rossum
45b09cacde Issue #28649: fix-typing-test-v2.diff (3.6->3.7) 2016-11-09 13:19:01 -08:00
Guido van Rossum
83be424700 Issue #28649: fix-typing-test-v2.diff (3.5->3.6) 2016-11-09 13:19:00 -08:00
Guido van Rossum
f9099de894 Issue #28649: fix-typing-test-v2.diff 2016-11-09 13:18:59 -08:00
Guido van Rossum
a50c79f36f Issue #28556: More typing.py updates from upstream. (3.6->3.7) 2016-11-09 13:12:56 -08:00
Guido van Rossum
b75f48580f Issue #28556: More typing.py updates from upstream. (3.5->3.6) 2016-11-09 13:12:53 -08:00
Guido van Rossum
991d14fee1 Issue #28556: More typing.py updates from upstream. 2016-11-09 13:12:51 -08:00
Steve Dower
bb132fc34e Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch by Vajrasky Kok) 2016-11-09 12:58:31 -08:00
Steve Dower
98eb360531 Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch by Vajrasky Kok) 2016-11-09 12:58:17 -08:00
Yury Selivanov
02f252f3af Merge 3.6 (issue #28652) 2016-11-09 15:48:22 -05:00
Yury Selivanov
954c7dd0cc Merge 3.5 (issue #28652) 2016-11-09 15:47:47 -05:00
Yury Selivanov
a1a8b7d3d7 Issue #28652: Make loop methods reject socket kinds they do not support. 2016-11-09 15:47:00 -05:00
Yury Selivanov
bb5e522d45 Merge 3.6 (asyncio) 2016-11-08 19:16:37 -05:00
Yury Selivanov
a054f40e84 Merge 3.5 (asyncio) 2016-11-08 19:16:15 -05:00
Yury Selivanov
6cc495e9e2 asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__
Some built-in coroutine-like objects might not have __name__ or
__qualname__. A good example of such are 'asend', 'aclose' and
'athrow' coroutine methods of asynchronous generators.
2016-11-08 19:16:01 -05:00
Yury Selivanov
0ee446c894 Merge 3.6 (issue #27243) 2016-11-08 15:15:42 -05:00
Yury Selivanov
2edd8a1e2c Issue #27243: Change PendingDeprecationWarning -> DeprecationWarning.
As it was agreed in the issue, __aiter__ returning an awaitable
should result in PendingDeprecationWarning in 3.5 and in
DeprecationWarning in 3.6.
2016-11-08 15:13:07 -05:00
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
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
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
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
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