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. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/KCDF3L7SDPVOSFNPX7GQDWEE5HPZRXMT/ Code of Conduct: http://python.org/psf/codeofconduct/