]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108253: Fix bug in func version cache (#108296)
authorGuido van Rossum <guido@python.org>
Tue, 22 Aug 2023 15:29:49 +0000 (08:29 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 15:29:49 +0000 (08:29 -0700)
commitb8f96b5eda5b376b05a9dbf046208388249e30a6
treef7835315ca78df8d9b47bcd3622f96751bedbe65
parentadfc118fdab66882599e01a84c22bd897055f3f1
gh-108253: Fix bug in func version cache (#108296)

When a function object changed its version, a stale pointer might remain in the cache.
Zap these whenever `func_version` changes (even when set to 0).
Objects/funcobject.c