4 ms·
I have seen this advice many times but I end up using os.system() 70% of the time. If subprocess and other methods were smart enough to support running somethin
by _8j50 3y ago
I have seen this advice many times but I end up using os.system() 70% of the time. If subprocess and other methods were smart enough to support running something like " ls -l aS " without requiring additional parameters/handling I would use them. If I was shipping a user facing production app I would be using the more recommended apis as well. But when I just need a freaking command run and I don't care about the results and there is no dynamic parameter in the command why would I add all that code and complexity? Most of my use cases could also be done as a bash script except python is nicer/leaner so i prefer it instead.