summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJohn Belmonte <john@neggie.net>2021-10-05 06:21:34 (GMT)
committerGitHub <noreply@github.com>2021-10-05 06:21:34 (GMT)
commit872b1e537e96d0dc4ff37c738031940b5d271366 (patch)
tree9eb4a7d575fda3c330123a50f9fde515bb53fc50 /Python/pythonrun.c
parent1e328afb04aa5dbb396e105b1ef65a79eb394dde (diff)
downloadcpython-872b1e537e96d0dc4ff37c738031940b5d271366.zip
cpython-872b1e537e96d0dc4ff37c738031940b5d271366.tar.gz
cpython-872b1e537e96d0dc4ff37c738031940b5d271366.tar.bz2
[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)
Make enter_context(foo()) / enter_async_context(foo()) equivalent to `[async] with foo()` regarding __context__ when an exception is raised. Previously exceptions would be caught and re-raised with the wrong context when explicitly overriding __context__ with None.. (cherry picked from commit e6d1aa1ac65b6908fdea2c70ec3aa8c4f1dffcb5) Co-authored-by: John Belmonte <john@neggie.net> Automerge-Triggered-By: GH:njsmith
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions