[Python-ideas] Better stdlib support for Path objects

Juancarlo Añez apalala at gmail.com
Tue Oct 7 01:26:58 CEST 2014


On Mon, Oct 6, 2014 at 4:49 PM, Georg Brandl <g.brandl at gmx.net> wrote:

> However, the context managers are a few dozen classes at most.  With paths,
> there are hundreds of APIs that would have to be updated to take Paths
> in the stdlib alone.  Granted, a good portion would probably work fine
> since
> they only pass through paths to lower level APIs, but still every one has
> to
> be checked.  Going by precedent, that's not something that we would be able
> to do consistently, even throughout several releases.  (Another precedent
> is
> Argument Clinic.)
>

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

Cheers,


-- 
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141006/3b47a986/attachment.html>


More information about the Python-ideas mailing list