Skip to content

Commit aa31429

Browse files
committed
Enable nested scopes by default.
Although this is a one-character change, more work needs to be done: the compiler can get rid of a lot of non-nested-scopes code, the documentation needs to be updated, the future statement can be simplified, etc. But this change enables the nested scope semantics everywhere, and that's the important part -- we can now test code for compatibility with nested scopes by default.
1 parent c7e4aca commit aa31429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ DL_IMPORT(PyFutureFeatures *) PyNode_Future(struct _node *, char *);
6262
DL_IMPORT(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *,
6363
PyCompilerFlags *);
6464

65-
#define NESTED_SCOPES_DEFAULT 0
65+
#define NESTED_SCOPES_DEFAULT 1
6666
#define FUTURE_NESTED_SCOPES "nested_scopes"
6767

6868
/* for internal use only */

0 commit comments

Comments
 (0)