Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 4003:138fa15a1032 legacy-trunk
Disable support for access statement
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 12 Aug 1996 22:00:53 +0000 |
| parents | 00722990b80c |
| children | eedaa59341b9 |
line wrap: on
line diff
--- a/Python/compile.c Mon Aug 12 21:32:12 1996 +0000 +++ b/Python/compile.c Mon Aug 12 22:00:53 1996 +0000 @@ -1792,12 +1792,12 @@ #define strequ(a, b) (strcmp((a), (b)) == 0) +#ifdef SUPPORT_OBSOLETE_ACCESS static void com_access_stmt(c, n) struct compiling *c; node *n; { -#if 0 int i, j, k, mode, imode; object *vmode; REQ(n, access_stmt); @@ -1848,8 +1848,8 @@ com_addoparg(c, LOAD_CONST, imode); com_addopname(c, ACCESS_MODE, CHILD(n, i)); } +} #endif -} static void com_exec_stmt(c, n) @@ -2421,9 +2421,11 @@ case global_stmt: com_global_stmt(c, n); break; +#ifdef SUPPORT_OBSOLETE_ACCESS case access_stmt: com_access_stmt(c, n); break; +#endif case exec_stmt: com_exec_stmt(c, n); break;
