mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
* 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.
This commit is contained in:
parent
cacd9579d4
commit
db3165e655
9 changed files with 600 additions and 451 deletions
|
@ -232,14 +232,6 @@ builtin_eval(self, v)
|
|||
return exec_eval(v, eval_input);
|
||||
}
|
||||
|
||||
static object *
|
||||
builtin_exec(self, v)
|
||||
object *self;
|
||||
object *v;
|
||||
{
|
||||
return exec_eval(v, file_input);
|
||||
}
|
||||
|
||||
static object *
|
||||
builtin_execfile(self, v)
|
||||
object *self;
|
||||
|
@ -755,7 +747,6 @@ static struct methodlist builtin_methods[] = {
|
|||
{"dir", builtin_dir},
|
||||
{"divmod", builtin_divmod},
|
||||
{"eval", builtin_eval},
|
||||
{"exec", builtin_exec},
|
||||
{"execfile", builtin_execfile},
|
||||
{"float", builtin_float},
|
||||
{"getattr", builtin_getattr},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue