Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 1354:fccd415e2eb8 legacy-trunk
* bltinmodule.c: removed exec() built-in function.
* Grammar: add exec statement; allow testlist in expr statement.
* ceval.c, compile.c, opcode.h: support exec statement;
avoid optimizing locals when it is used
* fileobject.{c,h}: add getfilename() internal function.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 18 Oct 1993 17:06:59 +0000 |
| parents | 6ee380349c84 |
| children | 1808ca5d8883 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Mon Oct 18 11:44:47 1993 +0000 +++ b/Python/bltinmodule.c Mon Oct 18 17:06:59 1993 +0000 @@ -233,14 +233,6 @@ } static object * -builtin_exec(self, v) - object *self; - object *v; -{ - return exec_eval(v, file_input); -} - -static object * builtin_execfile(self, v) object *self; object *v; @@ -755,7 +747,6 @@ {"dir", builtin_dir}, {"divmod", builtin_divmod}, {"eval", builtin_eval}, - {"exec", builtin_exec}, {"execfile", builtin_execfile}, {"float", builtin_float}, {"getattr", builtin_getattr},
