[Python-ideas] shutil.symlink to allow non-race replacement of existing link targets

eryk sun eryksun at gmail.com
Tue May 14 04:48:12 EDT 2019


On 5/14/19, Serge Matveenko <s at matveenko.ru> wrote:
>
> My point was that in case of `os.symlink` vs `shutil.symlink` it is
> not obvious how they are different even taking into account their
> namespaces.

I prefer to reserve POSIX system call names if possible, unless it's a
generic name such as "open" or "close".

Note that there's also the possibility of extending pathlib's
`symlink_to` method.


More information about the Python-ideas mailing list