&lt;delurk&gt;<br>On Windows it&#39;s correct that splitext(&quot;.txt&quot;)[1] == splitext(&quot;foo.txt&quot;)[1] and an implementation in which this is not true would be considered buggy.&nbsp; On *ix it&#39;s correct that splitext(&quot;.txt&quot;)[1] != splitext(&quot;
foo.txt&quot;)[1] and the current behaviour is considered buggy. Since programmer expectations are platform-specific, regardless of whether keywords are used or not, why not make the default behaviour platform-specific and document that it&#39;s so?
<br><br>Alternatively, if a new path implementation ever gets up, a more neutral solution might be to have a platform-specific Path.filetype, which could handle Mac resources..<br>&lt;/delurk&gt;<br><br>Cheers, -T<br>