[Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations
Antoine Pitrou
solipsis at pitrou.net
Wed Mar 14 13:36:47 EDT 2018
On Tue, 13 Mar 2018 15:35:56 +0000
Rhodri James <rhodri at kynesim.co.uk> wrote:
> On 12/03/18 20:57, George Fischhof wrote:
> > Good day all,
> >
> > as it seemed to be a good idea, I wrote a PEP proposal for pathlib to
> > contain file operations.
> >
> > Here is the draft. What do you think about this?
>
> I am mildly negative about this. In my copious spare time (ho ho) I
> have been considering the use of pathlib with things that aren't filing
> systems, such as http or ftp. Moving the file operations into pathlib
> would strain that idea even harder than my (extremely superficial)
> current thinking.
pathlib is meant for local filesystem paths. Dealing with arbitrary
"things which look like paths or have paths in them" (URLs?) is a topic
for another library.
Regards
Antoine.
More information about the Python-ideas
mailing list