This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients benrg, paul.moore, pitrou, steve.dower, tim.golden, zach.ware
Date 2018-01-23.08:26:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516696020.26.0.467229070634.issue32612@psf.upfronthosting.co.za>
In-reply-to
Content
> I think all programmers expect that if x == y, then they refer to the same file. This is not true currently.

Perhaps, but you could equally say that they expect that if x != y then they refer to different files, which is also not true. So do we optimise for the false positive or the false negative? It really depends on what operation you are doing, and so it has to be left in the hands of the developer.

Currently, we have a cheap comparison that minimises both without preventing either. The only option for PureWindowsPath is to prevent false positives (== always means same file), at the cost of causing so many false negatives that I suspect most developers would simply roll their own equality comparison. That's not the status quo, and especially for a behaviour that has been shipping for a few years without significant problems, changing the status quo that dramatically requires a more compelling case than has been presented so far.

If there are ways we can reduce the false positives without increasing the false negatives, then let's do it. But pragmatically, we should balance both, and leave the "perfect" comparisons to other methods.
History
Date User Action Args
2018-01-23 08:27:00steve.dowersetrecipients: + steve.dower, paul.moore, pitrou, tim.golden, benrg, zach.ware
2018-01-23 08:27:00steve.dowersetmessageid: <1516696020.26.0.467229070634.issue32612@psf.upfronthosting.co.za>
2018-01-23 08:27:00steve.dowerlinkissue32612 messages
2018-01-23 08:26:59steve.dowercreate