diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-01-04 13:37:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 13:37:06 (GMT) |
commit | c31e356a10aa60b5967b9aaf80b9984059e46461 (patch) | |
tree | 774e48afaea4e83f9b14c46e8d20cc14e018d92d /Tools/build | |
parent | 5fb1c08e15b864d8ea9353a0e013166e2e0e2160 (diff) | |
download | cpython-c31e356a10aa60b5967b9aaf80b9984059e46461.zip cpython-c31e356a10aa60b5967b9aaf80b9984059e46461.tar.gz cpython-c31e356a10aa60b5967b9aaf80b9984059e46461.tar.bz2 |
gh-100720: refactor calculation of number of frame slots for a code object into the new function _PyFrame_NumSlotsForCodeObject (#100722)
Diffstat (limited to 'Tools/build')
-rw-r--r-- | Tools/build/deepfreeze.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/build/deepfreeze.py b/Tools/build/deepfreeze.py index 7f4e242..e4b4228 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") |