[issue19792] pathlib does not support symlink in Windows XP

Antoine Pitrou report at bugs.python.org
Wed Nov 27 16:18:58 CET 2013


Antoine Pitrou added the comment:

The 2.7-compatible version of pathlib explains why the code is structured this way:

    if sys.getwindowsversion()[:2] >= (6, 0) and sys.version_info >= (3, 2):
        from nt import _getfinalpathname
    else:
        supports_symlinks = False
        _getfinalpathname = None


In the stdlib version, I removed the `sys.version_info >= (3, 2)` and so it may look like as easy to rely on os.symlink raising NotImplementedError. That would make merging back more difficult, though, so I'd rather keep it like that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19792>
_______________________________________


More information about the Python-bugs-list mailing list