mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
c7e4aca56c
commit
aa31429854
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ DL_IMPORT(PyFutureFeatures *) PyNode_Future(struct _node *, char *);
|
|||
DL_IMPORT(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *,
|
||||
PyCompilerFlags *);
|
||||
|
||||
#define NESTED_SCOPES_DEFAULT 0
|
||||
#define NESTED_SCOPES_DEFAULT 1
|
||||
#define FUTURE_NESTED_SCOPES "nested_scopes"
|
||||
|
||||
/* for internal use only */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue