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/cpython/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/cpython/code.h')
| -rw-r--r-- | Include/cpython/code.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index f11d099e03..fc7c5ed702 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -87,6 +87,7 @@ typedef struct { int co_nplaincellvars; /* number of non-arg cell variables */ \ int co_ncellvars; /* total number of cell variables */ \ int co_nfreevars; /* number of free variables */ \ + uint32_t co_version; /* version number */ \ \ PyObject *co_localsplusnames; /* tuple mapping offsets to names */ \ PyObject *co_localspluskinds; /* Bytes mapping to local kinds (one byte \ |
