On 2019-06-03, José Abílio Matos wrote: > On Tuesday, 26 February 2019 12.15.06 WEST Guenter Milde wrote: >> In any case, os.popen is deprecated since Python 2.6 and should be replaced >> by calls to subprocess. https://docs.python.org/3/library/subprocess.html
> That is true but in a sense there is no need because according to the python > documentation: > https://docs.python.org/3/library/os.html#os.popen > "This is implemented using subprocess.Popen; see that class’s documentation > for more powerful ways to manage and communicate with subprocesses." Yes, there is no mention of a deprecation in the current Python docs so we can assume it is safe to use in cases we don't need the "more powerful ways". Fine. > In any case it would be nice to make the python code uniform and > following the best practices. Yes (see my other reply). Günter