<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Warning: Lurker...</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, Jul 25, 2014 at 12:40 AM, Wolfgang Maier <span dir="ltr"><<a href="mailto:wolfgang.maier@biologie.uni-freiburg.de" target="_blank">wolfgang.maier@biologie.uni-freiburg.de</a>></span> wrote<br>

</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
<br></div>
Yes, the syntax is nicer *now*, but with my proposed change to os.path.abspath things would look quite similar:<br>
<br>
pathlib version now:<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 >>> path.Path('../../../Python27/<u></u>lib', 'ast.py').resolve()<br>
</blockquote>
<br></div>
os.path as proposed:<br>
os.path.abspath('ast.py', '../../../Python27/lib')<br>
<br>
So I would see this as an argument for the proposal rather than against it.<br></blockquote><div><br></div><div>Am I the only one who sees this as completely crazy-talk and an argument against? The idea that os.path.xxx(y,z) could be interpreted as z+y then resolved is a completely horrible API. The pathlib version keeps the parts of the path in order, and then resolves them, and where things are, well, they're clear. The proposed os.path modification reads, to me, as nonsense. Half of me wants to say it is asking to find the absolute path of ast.py and find this additional component in relation to that absolute path, the other half of me just shuts down. "os.path.abspath('ast.py', '../../../Python27/lib')" speaks in no way to me of absoluteness. There's two relative paths in its arguments and no sensible way of interpreting that comes forth, to me.</div>

<div> </div><div>It may make sense if you were adding a keyword-only argument, maybe, (maaaybe), but as an example of how they are similar it is IMHO a stark sign against why its ever so not similar and in fact, bad. </div>

<div><br></div><div>The pathlib version conveys a fairly clear idea of where the files its talking about are located. The proposal is just weird.</div><div><br></div><div>/relurk.</div></div></div></div>