diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-15 20:26:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-15 20:26:42 (GMT) |
commit | 312595ce3a75e91d53222e486dfdd6f3668422ca (patch) | |
tree | 6128e0533586fff8500ef53ed91232a43af8b7dc /Include/symtable.h | |
parent | fe361dfab588b75b9714b31648b98b982e6d1eda (diff) | |
download | cpython-312595ce3a75e91d53222e486dfdd6f3668422ca.zip cpython-312595ce3a75e91d53222e486dfdd6f3668422ca.tar.gz cpython-312595ce3a75e91d53222e486dfdd6f3668422ca.tar.bz2 |
hide the __class__ closure from the class body (#12370)
Diffstat (limited to 'Include/symtable.h')
-rw-r--r-- | Include/symtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/symtable.h b/Include/symtable.h index 4d82f0c..44535d0 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -53,6 +53,9 @@ typedef struct _symtable_entry { unsigned ste_varkeywords : 1; /* true if block has varkeywords */ unsigned ste_returns_value : 1; /* true if namespace uses return with an argument */ + unsigned ste_needs_class_closure : 1; /* for class scopes, true if a + closure over __class__ + should be created */ int ste_lineno; /* first line of block */ int ste_col_offset; /* offset of first line of block */ int ste_opt_lineno; /* lineno of last exec or import * */ |