Author: Ronan Lamy <ronan.l...@gmail.com> Branch: follow_symlinks Changeset: r83504:befb634cf35b Date: 2016-03-31 21:20 +0100 http://bitbucket.org/pypy/pypy/changeset/befb634cf35b/
Log: Update execve() docstring diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py --- a/pypy/module/posix/interp_posix.py +++ b/pypy/module/posix/interp_posix.py @@ -1142,7 +1142,8 @@ def _exit(space, status): os._exit(status) -def execv(space, w_command, w_args): +def execv(space, w_path, w_args): + """ execv(path, args) Execute an executable path with arguments, replacing current process. @@ -1150,7 +1151,7 @@ path: path of executable file args: iterable of strings """ - execve(space, w_command, w_args, None) + execve(space, w_path, w_args, None) def _env2interp(space, w_env): env = {} @@ -1160,16 +1161,20 @@ env[space.fsencode_w(w_key)] = space.fsencode_w(w_value) return env -def execve(space, w_command, w_args, w_env): - """ execve(path, args, env) +def execve(space, w_path, w_args, w_env): + """execve(path, args, env) Execute a path with arguments and environment, replacing current process. - path: path of executable file - args: iterable of arguments - env: dictionary of strings mapping to strings + path: path of executable file + args: tuple or list of arguments + env: dictionary of strings mapping to strings + +On some platforms, you may specify an open file descriptor for path; + execve will execute the program the file descriptor is open to. + If this functionality is unavailable, using it raises NotImplementedError. """ - command = space.fsencode_w(w_command) + command = space.fsencode_w(w_path) try: args_w = space.unpackiterable(w_args) if len(args_w) < 1: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit