]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Enable nested scopes by default.
authorGuido van Rossum <guido@python.org>
Thu, 12 Jul 2001 12:50:23 +0000 (12:50 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 12 Jul 2001 12:50:23 +0000 (12:50 +0000)
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.

Include/compile.h

index 74b068d3fd0bcf6d13c4639fad000f0a8757ed21..b9a735a5df52328814770d249731f3664f9f7974 100644 (file)
@@ -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 */