[Python-ideas] Better stdlib support for Path objects

Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Oct 7 01:40:54 CEST 2014


On Mon, Oct 6, 2014 at 7:26 PM, Juancarlo Añez <apalala at gmail.com> wrote:

> What do you think would be the nastier impacts of making pathlib.Path
> inherit from str?


Duplication of storage.  Currently, pathlib.Path objects store a list of
path components.  To inherit meaningfully from str, they would have to
store joined path string as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141006/63817210/attachment.html>


More information about the Python-ideas mailing list