summaryrefslogtreecommitdiffstats
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-05-15 20:26:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-05-15 20:26:42 (GMT)
commit312595ce3a75e91d53222e486dfdd6f3668422ca (patch)
tree6128e0533586fff8500ef53ed91232a43af8b7dc /Include/symtable.h
parentfe361dfab588b75b9714b31648b98b982e6d1eda (diff)
downloadcpython-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.h3
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 * */