Skip to content

Commit bc3000b

Browse files
blurb-it[bot]gvanrossum
authored andcommitted
📜🤖 Added by blurb_it.
1 parent 9fbc1d8 commit bc3000b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pass the correct ``contextvars.Context`` when a ``asyncio`` exception handler is called on behalf of a task. This adds a new ``Task`` method, ``get_context``. If this method is not found on a task object (perhaps because it is a third-party library that does not yet provide this method), the context prevailing at the time the exception handler is called is used.

0 commit comments

Comments
 (0)