Re: [Python-Dev] pathlib (was: Defining a path protocol)

2016-04-09 Thread Greg Ewing
Nick Coghlan wrote: We want to be able to readily use the protocol helper in builtin modules like os and low level Python modules like os.path, which means we want it to be much lower down in the import hierarchy than pathlib. Also, it's more general than that. It works on any object that wants

Re: [Python-Dev] pathlib (was: Defining a path protocol)

2016-04-08 Thread Nick Coghlan
On 8 April 2016 at 00:25, Jim J. Jewett wrote: > (1) I think the "built-in" should instead be a module-level function > in the pathlib. If you aren't already expecting pathlib paths, then > you're just expecting strings to work anyhow, and a builtin isn't > likely to be helpful. Concrete data i