
Sept. 15, 2021
10:49 a.m.
14.09.21 22:43, Marc-Andre Lemburg пише:
Would there be interest in adding something like this to the os module as os.workdir() ?
There is already an open issue and PR for this: https://bugs.python.org/issue25625 https://github.com/python/cpython/pull/28271 My main concern is that it is not thread-safe (nor generator-safe, nor coroutine-safe), but on other hand, redirect_stdout() and redirect_stderr() have same limitations.