<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, 29 Mar 2016 at 15:41 Koos Zevenhoven <<a href="mailto:k7hoven@gmail.com">k7hoven@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br>
>> On Mar 30, 2016 01:07, "Ethan Furman" wrote:<br>
><br>
><br>
>>> Please provide an example of both a relative and an absolute path<br>
>>> construction using `P`.<br>
>><br>
>><br>
>> P/'relative/path'<br>
>><br>
>> P/'/absolute/path'<br>
><br>
><br>
> Thank you.<br>
><br>
> So under this system a relative path appears with one leading slash, and an absolute path appears with two leading slashes.<br>
><br>
> Can't say I'm a fan. :(<br>
></p>
<p dir="ltr">I'll have to agree. But to be fair, Greg wrote something like 'a suitable seed object' so we could for ex. have P=PathSeed(), and use another operator.</p>
<p dir="ltr">P@'rel/path'</p>
<p dir="ltr">P@'/abs/path'</p>
<p dir="ltr">Dunno.</p></blockquote><div><br></div><div>If you are constructing a new object then you don't need to limit yourself to a single one. You could use A for absolute paths and R for relative paths:</div><div><br></div><div> R/'relative'/'path'</div><div> A/'absolute'/'path'</div><div><br></div><div>Or even P.absolute and P.relative:</div><div><br></div><div> P.relative/'relative'/'path'</div><div> P.absolute/'absolute'/'path'</div><div><br></div><div>And you could even go as far as make one the default and the other not to promote one over the other:</div><div><br></div><div> P.relative/'relative'/'path'</div><div> P/'absolute'/'path'</div><div><br></div><div>-Brett</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">-K@mobile</p>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a></blockquote></div></div>