mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
hide the __class__ closure from the class body (#12370)
This commit is contained in:
parent
fe361dfab5
commit
312595ce3a
7 changed files with 221 additions and 152 deletions
|
@ -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 * */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue