<div dir="ltr">On Tue, Jun 5, 2018 at 4:42 PM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is a quick and dirty survey of my code:<br>
<br>
[steve@ando python]$ grep Path *.py */*.py */*/*.py | wc -l<br>
21<br>
[steve@ando python]$ grep "enumerate(" *.py */*.py */*/*.py | wc -l<br>
307<br>
[steve@ando python]$ grep "zip(" *.py */*.py */*/*.py | wc -l<br>
499<br>
[steve@ando python]$ grep "any(" *.py */*.py */*/*.py | wc -l<br>
96<br>
[steve@ando python]$ grep "all(" *.py */*.py */*/*.py | wc -l<br>
224<br></blockquote><div><br></div><div>I"m not saying I agree with the OP, but this is not a fair comparison at all -- Path is pretty new, and even newer is it functional with most of teh stdlib.<br><br></div><div>I do a lot of path manipulations in my code, but hardly ever use Path -- nly brand new code uses it.<br><br></div><div>so I think you'd need to grep for os.path (and probably shutil, too) to get a meaningful answer.<br><br></div><div>But key here is that there is no consensus that Path is the new "obvious way to do it", and adding it to builtins would be essentially making that statement.<br><br></div><div>-CHB<br></div></div><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>