You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//scope->flags = 0; since we set some things in parameters
3035
+
// compute scope_flags
3036
+
//scope->scope_flags = 0; since we set some things in parameters
3037
3037
if (scope->kind!=SCOPE_MODULE) {
3038
-
scope->flags |= SCOPE_FLAG_NEWLOCALS;
3038
+
scope->scope_flags |= MP_SCOPE_FLAG_NEWLOCALS;
3039
3039
}
3040
3040
if (scope->kind==SCOPE_FUNCTION||scope->kind==SCOPE_LAMBDA||scope->kind==SCOPE_LIST_COMP||scope->kind==SCOPE_DICT_COMP||scope->kind==SCOPE_SET_COMP||scope->kind==SCOPE_GEN_EXPR) {
3041
3041
assert(scope->parent!=NULL);
3042
-
scope->flags |= SCOPE_FLAG_OPTIMISED;
3042
+
scope->scope_flags |= MP_SCOPE_FLAG_OPTIMISED;
3043
3043
3044
3044
// TODO possibly other ways it can be nested
3045
3045
// Note that we don't actually use this information at the moment (for CPython compat only)
3046
3046
if ((SCOPE_FUNCTION <= scope->parent->kind&&scope->parent->kind <= SCOPE_SET_COMP) || (scope->parent->kind==SCOPE_CLASS&&scope->parent->parent->kind==SCOPE_FUNCTION)) {
0 commit comments