summaryrefslogtreecommitdiff
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-05-11 21:18:38 +0900
committerGitHub <noreply@github.com>2017-05-11 21:18:38 +0900
commit991adca012f5e106c2d4040ce619c696ba6f9c46 (patch)
tree90fa267454273f2e779ceffbeeae2ff84d5f01ca /Misc/NEWS
parentc4750959acbfc3057f12aaec832483ba30898d1c (diff)
downloadcpython-git-991adca012f5e106c2d4040ce619c696ba6f9c46.tar.gz
bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097)
when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 5ee7ea65ff..4e17a66bd9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -320,6 +320,9 @@ Extension Modules
Library
-------
+- bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is
+ running coroutine and the coroutine returned without any more ``await``.
+
- bpo-30298: Weaken the condition of deprecation warnings for inline modifiers.
Now allowed several subsequential inline modifiers at the start of the
pattern (e.g. ``'(?i)(?s)...'``). In verbose mode whitespaces and comments