Message 338663 - Python tracker

Message338663

Author kmaork
Recipients eryksun, kmaork, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-03-23.10:31:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553337114.0.0.664410355884.issue36305@roundup.psfhosted.org>
In-reply-to
Content
Update after editing my PR - the bugs are:

1. WindowsPath('C:a').absolute() should return WindowsPath('C:\\d\\a') but returns WindowsPath('C:a').
This is caused by flawed logic in the parse_parts method of the _Flavour class.

2. WindowsPath('./b:a').absolute() should return WindowsPath('C:\\d\\b:a') but returns WindowsPath('b:a').
This is caused by the limited interface of parse_parts, and affects the Path.absolute, Path.expanduser and Path.__rtruediv__ methods.

3. WindowsPath('./b:a').resolve() should return WindowsPath('C:\\d\\b:a') but returns WindowsPath('b:a').
This is caused by missing logic in the resolve method and in Path.__str__

It'd be great if someone could review the PR so we can make progress with fixing the bugs.
History
Date User Action Args
2019-03-23 10:31:54kmaorksetrecipients: + kmaork, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2019-03-23 10:31:54kmaorksetmessageid: <1553337114.0.0.664410355884.issue36305@roundup.psfhosted.org>
2019-03-23 10:31:53kmaorklinkissue36305 messages
2019-03-23 10:31:53kmaorkcreate