[Python-ideas] New PEP proposal -- Pathlib Module ShouldContain All File Operations -- version 2

Jason Maldonis jjmaldonis at gmail.com
Fri Mar 23 16:47:34 EDT 2018


>
> I’ve found it odd that there doesn’t even seem to be acknowledgment among
> longtime python users that the current hodgepodge is pretty dysfunctional
> for new users.
>

I find this odd too. There have been a few comments along the lines of this
being a problem for newbies or for *some* people (not sure who *some* is
referring to), but I think that having these functions in different modules
is weird for everyone. It just so happens that if you use file-operations a
lot that you've gotten used to the system and know where to look, but it's
still weird to have to use 2-3 different modules. Additionally, if you know
where to look then it isn't really a hassle to import another module,
whereas it is a hassle if you are less familiar with the functionality
(regardless of whether you are a newbie or not).


> Heck, I’ve been using Python for almost 20 years and I still have go look
> up whether it’s “delete” or “remove” or “unlink”. And there is so much in
> os that ipython or IDE completion doesn’t help much.
>

Me too, although I've only been using python for ~ 10 years.


> Of course, this will require a substantial amount of work to work out the
> details in a PEP. I don’t have the time to do that, but if the OP or
> someone else does, I’ll help.
>

I'd be happy to help as well, and if I can find the time I'll write the PEP
(although I'd rather just contribute to it). Figuring out what to include
and how to change the methods' APIs seems like one of the easier PEPs to
write in terms of required knowledge (I don't know much about python's C
code), so hopefully I would have a chance at doing an adequate job. If you
think not, please tell me and I won't bother :)

- Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180323/48bb79f0/attachment.html>


More information about the Python-ideas mailing list