diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2022-08-23 11:23:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 11:23:39 (GMT) |
commit | d23ab79952836e67216113d9195c9c0e879b3e83 (patch) | |
tree | a4d6b2dd666c1a0e16dd0c409abfb35e86ed158d /Misc | |
parent | 9c34d644edec7e5d4da78317ad2bbceb246aa039 (diff) | |
download | cpython-d23ab79952836e67216113d9195c9c0e879b3e83.zip cpython-d23ab79952836e67216113d9195c9c0e879b3e83.tar.gz cpython-d23ab79952836e67216113d9195c9c0e879b3e83.tar.bz2 |
[3.10] GH--93592: Fix frame chain when throwing exceptions into coroutines (GH-95207)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-07-24-19-23-23.gh-issue-93592.zdgp6o.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-07-24-19-23-23.gh-issue-93592.zdgp6o.rst b/Misc/NEWS.d/next/Core and Builtins/2022-07-24-19-23-23.gh-issue-93592.zdgp6o.rst new file mode 100644 index 0000000..89267ed --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-07-24-19-23-23.gh-issue-93592.zdgp6o.rst @@ -0,0 +1,2 @@ +``coroutine.throw()`` now properly initializes the ``frame.f_back`` when resuming a stack of coroutines.
+This allows e.g. ``traceback.print_stack()`` to work correctly when an exception (such as ``CancelledError``) is thrown into a coroutine. |