[issue30177] pathlib.resolve(strict=False) only includes first child

Richard Cooper report at bugs.python.org
Sun May 28 09:37:40 EDT 2017


Richard Cooper added the comment:

Pull Request (PR 1649) treats this as a documentation problem. I would argue that the documentation is correct and this is a bug in the code.

The `strict` flag was added as a result of issue19717. The decision on what to do when strict=False seems to come in https://mail.python.org/pipermail/python-ideas/2016-September/042203.html where Guido says:

"I would prefer it if Path.resolve() resolved symlinks until it hits
something that doesn't exist and then just keep the rest of the path
unchanged."

The documented behaviour also seems much more useful than the current behaviour.

----------
nosy: +richardc

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


More information about the Python-bugs-list mailing list