[issue38435] Start the deprecation cycle for subprocess preexec_fn
Gregory P. Smith
report at bugs.python.org
Sun Dec 27 15:42:26 EST 2020
Gregory P. Smith <greg at krypto.org> added the comment:
> "using Python is more portable than relying on a shell."
Not in environments I use. :) There isn't an installed python interpreter that can be executed when deploying Python as an embedded interpreter such as anyone using pyoxidizer or similar. Plus "using python" means adding a Python startup time delay to anything that triggered such an action. That added latency isn't acceptable in some situations.
When I suggest a workaround for something as involving an intermediate shell script, read that to mean "the user needs an intermediate program to do this complicated work for them - how is up to them - we aren't going to provide it from the stdlib". A shell script is merely one easy pretty-fast solution - in environments where that is possible.
TL;DR - there's no one size fits all solution here. But third party libraries could indeed implement any/all of these options including abstracting how and what gets used when if someone wanted to do that.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38435>
_______________________________________
More information about the Python-bugs-list
mailing list