[issue29079] pathlib.resolve() causes infinite loop on Windows

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +1070 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29079] pathlib.resolve() causes infinite loop on Windows

2017-02-02 Thread Steve Dower
Steve Dower added the comment: At the point this code is running, it doesn't matter. The path doesn't exist, so trimming irrelevant segments from it will just cause a few extra iterations through resolve until we clear out enough of the absent segments to find something that does exist. abspa

[issue29079] pathlib.resolve() causes infinite loop on Windows

2017-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure the fix is correct. os.path.dirname(s) can point to different place than os.path.abspath(os.path.join(s, os.pardir)) if the last component of s is "..", "." or a symbolic link. Would be nice to add tests. -- nosy: +serhiy.storchaka ___

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-28 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ _

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset af8c8551ea45 by Steve Dower in branch '3.6': Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows https://hg.python.org/cpython/rev/af8c8551ea45 New changeset 9de7bf6c60d2 by Steve Dower in branch 'default': Issue #29079: Prevent infi

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-26 Thread Steve Dower
Steve Dower added the comment: We should break out of the "while True" loop in _WindowsFlavour.resolve when joining with ".." doesn't result in a different path. -- ___ Python tracker _

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-26 Thread Steve Dower
Changes by Steve Dower : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29079] pathlib.resolve() causes infinite loop on Windows

2016-12-26 Thread Georg Mischler
New submission from Georg Mischler: When pathlib.resolve() is invoked on Windows(10) with an absolute path including a non-existing drive, it gets caught in an infinite loop. To reproduce: Select a drive letter that doesn't exist on the system (in my case H:). Run the following line of code: