mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
keyword arguments and faster calls
This commit is contained in:
parent
11a3f0c2bc
commit
681d79aaf3
7 changed files with 782 additions and 605 deletions
|
@ -54,7 +54,7 @@ extern long getmtime(); /* In getmtime.c */
|
|||
Apple MPW compiler swaps their values, botching string constants */
|
||||
/* XXX Perhaps the magic number should be frozen and a version field
|
||||
added to the .pyc file header? */
|
||||
#define MAGIC (0x4127L | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
#define MAGIC (11913 | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
|
||||
object *import_modules; /* This becomes sys.modules */
|
||||
|
||||
|
@ -159,7 +159,7 @@ exec_code_module(name, co)
|
|||
if (dictinsert(d, "__builtins__", getbuiltins()) != 0)
|
||||
return NULL;
|
||||
}
|
||||
v = eval_code((codeobject *)co, d, d, d, (object *)NULL);
|
||||
v = eval_code((codeobject *)co, d, d); /* XXX owner? */
|
||||
if (v == NULL)
|
||||
return NULL;
|
||||
DECREF(v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue