summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-01 14:13:15 (GMT)
committerGitHub <noreply@github.com>2023-12-01 14:13:15 (GMT)
commit7eff607debb6e749a0066ec7fd20be2616c17da3 (patch)
treeca5dcf4bdf458e5fad47703d1d599f38c7d11baf /Misc
parentedce0c4fb3e5f9fb26b2c214e3479ffa13dbaa43 (diff)
downloadcpython-7eff607debb6e749a0066ec7fd20be2616c17da3.zip
cpython-7eff607debb6e749a0066ec7fd20be2616c17da3.tar.gz
cpython-7eff607debb6e749a0066ec7fd20be2616c17da3.tar.bz2
[3.12] gh-111058: Change coro.cr_frame/gen.gi_frame to be None for a closed coroutine/generator. (GH-112428) (#112589)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-11-26-21-30-11.gh-issue-111058.q4DqDY.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-11-26-21-30-11.gh-issue-111058.q4DqDY.rst b/Misc/NEWS.d/next/Core and Builtins/2023-11-26-21-30-11.gh-issue-111058.q4DqDY.rst
new file mode 100644
index 0000000..de5661f
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-11-26-21-30-11.gh-issue-111058.q4DqDY.rst
@@ -0,0 +1,3 @@
+Change coro.cr_frame/gen.gi_frame to return ``None`` after the coroutine/generator has been closed.
+This fixes a bug where :func:`~inspect.getcoroutinestate` and :func:`~inspect.getgeneratorstate`
+return the wrong state for a closed coroutine/generator.