Anthony Sottile <asott...@umich.edu> added the comment:

They're thin wrappers around the same C functions -- that's just how C works

it is also documented: https://docs.python.org/3/library/os.html#os.execvpe

> In either case, the arguments to the child process **should start with the 
> name of the command being run**, but this is not enforced.

The pattern that I usually use is

```python
cmd = ('bash', '--init-file', 'foo')
os.execvp(cmd[0], cmd)  # never returns
```

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37066>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to