[issue38811] Pathlib crashes when os module is missing 'link' method

STINNER Victor report at bugs.python.org
Mon Dec 16 07:28:38 EST 2019


STINNER Victor <vstinner at python.org> added the comment:

Thanks Toke Høiland-Jørgensen! I merged your fix.

I don't really get why the Debian/Ubuntu image on Travis CI didn't get os.link() function, but I'm not really intersted to dig into this question. It's fine to simply skip the feature if it's not available, we do that in many places in Python.

I asked Toke Høiland-Jørgensen to revert his changes about os.symlink(): the pathlib code to handle missing os.symlink() seems to be broken, but it also seems like Python no longer support platforms without os.symlink(). Only old Windows version didn't support os.symlink(), but Python don't support these versions anymore.

I merged the os.link() change into master and made a 3.8 backport which will be merged automatically soon.

I close the issue.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9

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


More information about the Python-bugs-list mailing list