]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116916: Remove separate next_func_version counter (#116918)
authorGuido van Rossum <guido@python.org>
Mon, 18 Mar 2024 18:11:10 +0000 (11:11 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2024 18:11:10 +0000 (11:11 -0700)
commit7e1f38f2de8f93de362433203faa5605a0c47f0e
treeaf7b0edad82614c2e8f646934fad5286e1211723
parent76d086890790f1bfbe05d12e02cadb539db5b0b1
gh-116916: Remove separate next_func_version counter (#116918)

Somehow we ended up with two separate counter variables tracking "the next function version".
Most likely this was a historical accident where an old branch was updated incorrectly.
This PR merges the two counters into a single one: `interp->func_state.next_version`.
Include/internal/pycore_interp.h
Objects/codeobject.c
Objects/funcobject.c
Python/pystate.c