![](https://secure.gravatar.com/avatar/33bd15feb2558d0050e863875e0f5f60.jpg?s=120&d=mm&r=g)
Sept. 15, 2021
7:02 a.m.
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