summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-05-25 19:30:48 (GMT)
committerGitHub <noreply@github.com>2024-05-25 19:30:48 (GMT)
commit0c5ebe13e9937c446e9947c44f2570737ecca135 (patch)
tree6498ee1ee5fdf54b6adccfb9af9c42a53d82c4c6 /Misc/NEWS.d
parent4b7eb321bc43e41371df86fce47bd999ee51a793 (diff)
downloadcpython-0c5ebe13e9937c446e9947c44f2570737ecca135.zip
cpython-0c5ebe13e9937c446e9947c44f2570737ecca135.tar.gz
cpython-0c5ebe13e9937c446e9947c44f2570737ecca135.tar.bz2
gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-119561)
The assertion was added in gh-118532 but was based on the invalid assumption that PyState_FindModule() would only be called with an already-initialized module def. I've added a test to make sure we don't make that assumption again.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2024-05-25-12-52-25.gh-issue-119560.wSlm8q.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-05-25-12-52-25.gh-issue-119560.wSlm8q.rst b/Misc/NEWS.d/next/Core and Builtins/2024-05-25-12-52-25.gh-issue-119560.wSlm8q.rst
new file mode 100644
index 0000000..3a28a94
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2024-05-25-12-52-25.gh-issue-119560.wSlm8q.rst
@@ -0,0 +1,3 @@
+An invalid assert in beta 1 has been removed. The assert would fail if
+``PyState_FindModule()`` was used in an extension module's init function
+before the module def had been initialized.