diff options
author | Mark Shannon <mark@hotpy.org> | 2022-12-09 12:18:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 12:18:45 +0000 |
commit | fb713b21833a17cba8022af0fa4c486512157d4b (patch) | |
tree | 2e75f1e59393160792f1097846a648ff7927de8d /Include/internal/pycore_code.h | |
parent | 3c5355496b54fa0a4ea0e22344d008528e45682c (diff) | |
download | cpython-git-fb713b21833a17cba8022af0fa4c486512157d4b.tar.gz |
GH-98522: Add version number to code objects. (GH-98525)
* Add version number to code object for better versioning of functions.
* Improves specialization for closures and list comprehensions.
Diffstat (limited to 'Include/internal/pycore_code.h')
-rw-r--r-- | Include/internal/pycore_code.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 357fc85a95..f22fd45f83 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -474,6 +474,8 @@ typedef struct _PyShimCodeDef { extern PyCodeObject * _Py_MakeShimCode(const _PyShimCodeDef *code); +extern uint32_t _Py_next_func_version; + #ifdef __cplusplus } |