diff options
author | Guido van Rossum <guido@python.org> | 2001-07-12 12:50:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-07-12 12:50:23 (GMT) |
commit | aa314298543132742efb5544ad202bb209136abf (patch) | |
tree | 11a312062e660f70f98bacab86a6effbc85aacd5 /Include/compile.h | |
parent | c7e4aca56cda93e8cbb08db5c30127fb00b0e918 (diff) | |
download | cpython-aa314298543132742efb5544ad202bb209136abf.zip cpython-aa314298543132742efb5544ad202bb209136abf.tar.gz cpython-aa314298543132742efb5544ad202bb209136abf.tar.bz2 |
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.
Diffstat (limited to 'Include/compile.h')
-rw-r--r-- | Include/compile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/compile.h b/Include/compile.h index 74b068d..b9a735a 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -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 */ |