On 15/09/2021 01.55, Guido van Rossum wrote: > I know where I'd file a bug. :-) > > "Bug magnet" is an extremely subjective pejorative term. When the > *better* way to do things (os.workdir()) is harder than the *easy* way > to do (os.chdir()), which is the real bug magnet?
The "better way" to handle current working directory is to use the modern *at() variants of syscalls, e.g. openat() instead open(). The variants take an additional file descriptor dirfd that is used as the current working directory for the syscall. Christian _______________________________________________ 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/FDCKFPVBBSNLBDBTI577NP55JN2DBWCE/ Code of Conduct: http://python.org/psf/codeofconduct/