<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 7:58 PM, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net" target="_blank">solipsis@pitrou.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":4n3" class="" style="overflow:hidden">Not inheriting from built-in classes such as str, list or tuple<br>
was one of the design points of pathlib. It will not change in the<br>
future ;-)<br>
<br>
PEP 428 outlines this, but you can probably find a more detailed<br>
discussion in the python-ideas archive.</div></blockquote></div><br>See also rejected PEP 355: "Subclassing from str is a particularly bad idea; many string<br>operations make no sense when applied to a path."<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://legacy.python.org/dev/peps/pep-0355/">http://legacy.python.org/dev/peps/pep-0355/</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">(I would add that many str operations make no sense - period, so propagating them into newer designs would be a mistake.)</div></div>