[New-bugs-announce] [issue24943] Simplifying os.exec*

Sworddragon report at bugs.python.org
Thu Aug 27 09:18:51 CEST 2015


New submission from Sworddragon:

I'm seeing in the documentation 8 different os.exec* functions that differ only slightly. I think from the way they are differing they could also all be merged into 1 function which could look like this:

os.exec(file, args, env, use_path)

- file is the path to the executable file and if use_path is True the PATH environment variable will be used to look for it (reflects p).
- args will be a dynamic list or tuple of arguments as it can handle a fixed and a variable number of arguments (reflects v).
- env is the mapping of the environment variables which will be used or None if the environment variables of the current process shall be used (reflects e).

env would default to None and use_path either to False or True.

----------
components: Library (Lib)
messages: 249224
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Simplifying os.exec*
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24943>
_______________________________________


More information about the New-bugs-announce mailing list