Index: Lib/os.py =================================================================== --- Lib/os.py (revision 79206) +++ Lib/os.py (working copy) @@ -290,36 +290,36 @@ except NameError: environ = {} -def execl(file, *args): - """execl(file, *args) +def execl(file, name, *args): + """execl(file, name, arg1, ..., argN) - Execute the executable file with argument list args, replacing the + Execute the executable file with argument list [name, arg1, ... argN], replacing the current process. """ execv(file, args) -def execle(file, *args): - """execle(file, *args, env) +def execle(file, name, *args): + """execle(file, name, arg1, ..., argN, env) - Execute the executable file with argument list args and + Execute the executable file with argument list [name, arg1, ... argN] and environment env, replacing the current process. """ env = args[-1] - execve(file, args[:-1], env) + execve(file, name, args[:-1], env) -def execlp(file, *args): - """execlp(file, *args) +def execlp(file, name, *args): + """execlp(file, name, arg1, ... argN) Execute the executable file (which is searched for along $PATH) - with argument list args, replacing the current process. """ - execvp(file, args) + with argument list [name, arg1, ... argN], replacing the current process. """ + execvp(file, name, arg1, ... argN) -def execlpe(file, *args): - """execlpe(file, *args, env) +def execlpe(file, name, *args): + """execlpe(file, name, arg1, ... argN, env) Execute the executable file (which is searched for along $PATH) - with argument list args and environment env, replacing the current + with argument list [name, arg1, ... argN] and environment env, replacing the current process. """ env = args[-1] - execvpe(file, args[:-1], env) + execvpe(file, name, args[:-1], env) def execvp(file, args): """execvp(file, args)