bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209)

This commit is contained in:
Yury Selivanov 2018-05-29 17:20:02 -04:00 committed by GitHub
parent 1cee216cf3
commit 863b674909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 2 deletions

View file

@ -640,6 +640,10 @@ Task functions
outer Future is *not* cancelled in this case. (This is to prevent the
cancellation of one child to cause other children to be cancelled.)
.. versionchanged:: 3.7.0
If the *gather* itself is cancelled, the cancellation is propagated
regardless of *return_exceptions*.
.. function:: iscoroutine(obj)
Return ``True`` if *obj* is a :ref:`coroutine object <coroutine>`,