diff options
| author | INADA Naoki <methane@users.noreply.github.com> | 2017-05-11 21:18:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-11 21:18:38 +0900 |
| commit | 991adca012f5e106c2d4040ce619c696ba6f9c46 (patch) | |
| tree | 90fa267454273f2e779ceffbeeae2ff84d5f01ca /Misc/NEWS | |
| parent | c4750959acbfc3057f12aaec832483ba30898d1c (diff) | |
| download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
