<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 4:49 PM, Georg Brandl <span dir="ltr"><<a href="mailto:g.brandl@gmx.net" target="_blank">g.brandl@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":28c" class="a3s" style="overflow:hidden">However, the context managers are a few dozen classes at most.  With paths,<br>
there are hundreds of APIs that would have to be updated to take Paths<br>
in the stdlib alone.  Granted, a good portion would probably work fine since<br>
they only pass through paths to lower level APIs, but still every one has to<br>
be checked.  Going by precedent, that's not something that we would be able<br>
to do consistently, even throughout several releases.  (Another precedent is<br>
Argument Clinic.)</div></blockquote></div><br>What do you think would be the nastier impacts of making pathlib.Path inherit from str?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,<br><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,102,0)">Juancarlo </span><b style="color:rgb(0,102,0)">Añez</b>
</div></div>