[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

Eryk Sun report at bugs.python.org
Tue Jul 28 07:48:26 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

> Isn't that a backwards-incompatible change?

So, do you think it should just be documented that follow_symlinks is effectively ignored with os.link() on most platforms that claim to support it, unless either src_dir_fd or dst_dir_fd is used? I'd rather it was fixed to behave consistently in 3.10, even if it's backwards incompatible with some use cases on some platforms. I think for most use cases, it's just called without arguments as os.link(src, dst), in which case on most platforms switching the default to follow_symlinks=False will preserve the existing and expected behavior.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41355>
_______________________________________


More information about the Python-bugs-list mailing list