]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
* import.c (MAGIC): Changed magic word to avoid confusion about exec
authorGuido van Rossum <guido@python.org>
Fri, 22 Oct 1993 14:26:06 +0000 (14:26 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 22 Oct 1993 14:26:06 +0000 (14:26 +0000)
  function vs. exec statement
* bltinmodule.c: renamed the module to __builtin__.
* posixmodule.c (posix_execv): renamed exec --> execv since it is now a
  reserved word.

Modules/posixmodule.c
Python/bltinmodule.c
Python/import.c

index d3f35837b15fd0c5a572dc45776a73e67c149619..df61c25e3b00bcf3b0022413a8ff0ac1b53eb777 100644 (file)
@@ -582,7 +582,7 @@ posix__exit(self, args)
 /* XXX To do: exece, execp */
 
 static object *
-posix_exec(self, args)
+posix_execv(self, args)
        object *self;
        object *args;
 {
@@ -592,7 +592,7 @@ posix_exec(self, args)
        int i, argc;
        object *(*getitem) PROTO((object *, int));
 
-       /* exec has two arguments: (path, argv), where
+       /* execv has two arguments: (path, argv), where
           argv is a list or tuple of strings. */
 
        if (!getargs(args, "(sO)", &path, &argv))
@@ -1180,7 +1180,7 @@ static struct methodlist posix_methods[] = {
 
 #ifndef MSDOS
        {"_exit",       posix__exit},
-       {"exec",        posix_exec},
+       {"execv",       posix_execv},
        {"fork",        posix_fork},
        {"getegid",     posix_getegid},
        {"geteuid",     posix_geteuid},
index 3ba8f91c0b592399de6164ce55583d59532f1739..60208a0d47c49f01e6dd5e5c6766d1ca692c79c3 100644 (file)
@@ -844,7 +844,7 @@ void
 initbuiltin()
 {
        object *m;
-       m = initmodule("builtin", builtin_methods);
+       m = initmodule("__builtin__", builtin_methods);
        builtin_dict = getmoduledict(m);
        INCREF(builtin_dict);
        initerrors();
index 4d01daf7a22f88d6017397f628f42f59b8d83a65..f0d4828ea0177e6ed36cfd1a192763c05c283353 100644 (file)
@@ -61,7 +61,7 @@ extern char *argv0;
 
 /* Magic word to reject .pyc files generated by other Python versions */
 
-#define MAGIC 0x999901L /* Increment by one for each incompatible change */
+#define MAGIC 0x999902L /* Increment by one for each incompatible change */
 
 static object *modules;