summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-01-04 13:37:06 +0000
committerGitHub <noreply@github.com>2023-01-04 13:37:06 +0000
commitc31e356a10aa60b5967b9aaf80b9984059e46461 (patch)
tree774e48afaea4e83f9b14c46e8d20cc14e018d92d /Tools
parentdocs: fix `ssizeobjargproc` parameters (#100736) (diff)
downloadcpython-c31e356a10aa60b5967b9aaf80b9984059e46461.tar.gz
cpython-c31e356a10aa60b5967b9aaf80b9984059e46461.tar.bz2
cpython-c31e356a10aa60b5967b9aaf80b9984059e46461.zip
gh-100720: refactor calculation of number of frame slots for a code object into the new function _PyFrame_NumSlotsForCodeObject (#100722)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/build/deepfreeze.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/build/deepfreeze.py b/Tools/build/deepfreeze.py
index 7f4e2428013..e4b422820f7 100644
--- a/Tools/build/deepfreeze.py
+++ b/Tools/build/deepfreeze.py
@@ -262,6 +262,7 @@ class Printer:
self.field(code, "co_argcount")
self.field(code, "co_posonlyargcount")
self.field(code, "co_kwonlyargcount")
+ # The following should remain in sync with _PyFrame_NumSlotsForCodeObject
self.write(f".co_framesize = {code.co_stacksize + len(localsplusnames)} + FRAME_SPECIALS_SIZE,")
self.field(code, "co_stacksize")
self.field(code, "co_firstlineno")