summaryrefslogtreecommitdiffstats
path: root/Include/cpython/code.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r--Include/cpython/code.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index df79ddb..5bf4c8c 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -83,11 +83,11 @@ struct PyCodeObject {
/* These fields are set with computed values on new code objects. */
- int *co_cell2arg; /* Maps cell vars which are arguments. */
// redundant values (derived from co_localsplusnames and co_localspluskinds)
int co_nlocalsplus; /* number of local + cell + free variables */
int co_nlocals; /* number of local variables */
- int co_ncellvars; /* number of cell variables */
+ int co_nplaincellvars; /* number of non-arg cell variables */
+ int co_ncellvars; /* total number of cell variables */
int co_nfreevars; /* number of free variables */
// lazily-computed values
PyObject *co_varnames; /* tuple of strings (local variable names) */
@@ -142,10 +142,6 @@ struct PyCodeObject {
#define CO_FUTURE_GENERATOR_STOP 0x800000
#define CO_FUTURE_ANNOTATIONS 0x1000000
-/* This value is found in the co_cell2arg array when the associated cell
- variable does not correspond to an argument. */
-#define CO_CELL_NOT_AN_ARG (-1)
-
/* This should be defined if a future statement modifies the syntax.
For example, when a keyword is added.
*/