Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-21 Thread Brett Cannon
On Wed, Nov 20, 2013 at 5:41 PM, Mark Lawrence wrote: > On 20/11/2013 22:01, Antoine Pitrou wrote: > >> >> pathlib imports many modules at startup, so for scripts for which >> startup time is critical using os.path may still be the best option. >> >> > Will there be or is there a note to this effe

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Chris Barker - NOAA Federal
On Nov 20, 2013, at 4:53 PM, Antoine Pitrou wrote: > > When pathlib-in-the-stdlib stabilizes, I plan to release a pathlib 1.0 > on PyPI that will integrate the PEP's API. Great, thanks! Chris > In the meantime, if you don't mind installing from VCS, you clone the > Mercurial repo (https://bi

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Antoine Pitrou
On Thu, 21 Nov 2013 01:51:59 +0100 Antoine Pitrou wrote: > On Wed, 20 Nov 2013 14:43:26 -0800 > Chris Barker wrote: > > > > By the way, for us dinosaurs is this going to exactly match the > > pathlib implementation that can be used with py2? > > pathlib up to 0.8 (on PyPI) has a different API

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Antoine Pitrou
On Wed, 20 Nov 2013 14:43:26 -0800 Chris Barker wrote: > > By the way, for us dinosaurs is this going to exactly match the > pathlib implementation that can be used with py2? pathlib up to 0.8 (on PyPI) has a different API - since there were so many changes done as part of the release process.

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Chris Barker
On Wed, Nov 20, 2013 at 1:39 PM, Giampaolo Rodola' wrote: > Isn't this redundant? > > >>> Path.cwd() > PosixPath('/home/antoine/pathlib') > > Probably this is just personal taste but I'd prefer the more explicit: > > >>> Path(os.getcwd()) > PosixPath('/home/antoine/pathlib') > > I understand all t

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Mark Lawrence
On 20/11/2013 22:01, Antoine Pitrou wrote: pathlib imports many modules at startup, so for scripts for which startup time is critical using os.path may still be the best option. Will there be or is there a note to this effect in the docs? -- Python is the second best programming language in

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Antoine Pitrou
On Wed, 20 Nov 2013 13:42:42 -0800 Guido van Rossum wrote: > On Tue, Nov 19, 2013 at 1:04 PM, Antoine Pitrou wrote: > > > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > > latest amended form. Here is the last call for any comments or > > arguments against approval, be

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Antoine Pitrou
On Wed, 20 Nov 2013 13:42:42 -0800 Guido van Rossum wrote: > On Tue, Nov 19, 2013 at 1:04 PM, Antoine Pitrou wrote: > > > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > > latest amended form. Here is the last call for any comments or > > arguments against approval, be

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
On Tue, Nov 19, 2013 at 1:04 PM, Antoine Pitrou wrote: > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > latest amended form. Here is the last call for any comments or > arguments against approval, before Guido marks the PEP accepted (or > changes his mind :-)). > Cong

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Giampaolo Rodola'
On Tue, Nov 19, 2013 at 10:04 PM, Antoine Pitrou wrote: > > Hello, > > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > latest amended form. Here is the last call for any comments or > arguments against approval, before Guido marks the PEP accepted (or > changes his mind

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Martin v. Löwis
Am 20.11.13 17:04, schrieb Eric V. Smith: > I think the confusion comes from the difference between what NTFS can do > and what the Win32 (or whatever it's now called) layer allows you to do. > Rumor has it that the old Posix subsystem allowed NTFS to create 2 files > in the same directory that dif

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Xavier Morel
On 2013-11-20, at 17:09 , Guido van Rossum wrote: > On Wed, Nov 20, 2013 at 6:01 AM, Ethan Furman wrote: > On 11/20/2013 04:25 AM, Garth Bushell wrote: > > I'm also quite uneasy on the case insensitive comparison on Windows as the > File system NTFS is case sensitive. > > No, it's case-preser

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
On Wed, Nov 20, 2013 at 6:01 AM, Ethan Furman wrote: > On 11/20/2013 04:25 AM, Garth Bushell wrote: > >> >> I'm also quite uneasy on the case insensitive comparison on Windows as >> the File system NTFS is case sensitive. >> > > No, it's case-preserving. > It's quite possible that you are both r

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Eric V. Smith
On 11/20/2013 09:01 AM, Ethan Furman wrote: > On 11/20/2013 04:25 AM, Garth Bushell wrote: >> >> I'm also quite uneasy on the case insensitive comparison on Windows as >> the File system NTFS is case sensitive. > > No, it's case-preserving. > >> """Current Windows file systems, like NTFS, are cas

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
On Wed, Nov 20, 2013 at 4:49 AM, Antoine Pitrou wrote: > On Wed, 20 Nov 2013 12:25:20 + > Garth Bushell wrote: > > > > I'm also quite uneasy on the case insensitive comparison on Windows as > the > > File system NTFS is case sensitive. > > > > """Current Windows file systems, like NTFS, are

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Ethan Furman
On 11/20/2013 04:25 AM, Garth Bushell wrote: I'm also quite uneasy on the case insensitive comparison on Windows as the File system NTFS is case sensitive. No, it's case-preserving. """Current Windows file systems, like NTFS, are case-sensitive; that is a readme.txt and a Readme.txt can ex

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Antoine Pitrou
On Wed, 20 Nov 2013 12:25:20 + Garth Bushell wrote: > > I'm also quite uneasy on the case insensitive comparison on Windows as the > File system NTFS is case sensitive. > > """Current Windows file systems, like NTFS, are case-sensitive; that is a > readme.txt and a Readme.txt can exist in th

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Garth Bushell
I've noticed in pathlib.py the following error on line 39 if sys.getwindowsversion()[:2] >= (6, 0) and sys.version_info >= (3, 2): it should be:- if sys.getwindowsversion()[2:] >= (6, 0) and sys.version_info >= (3, 2): I'm also quite uneasy on the case insensitive comparison on Windows as the F

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-19 Thread Antoine Pitrou
On Tue, 19 Nov 2013 17:02:15 -0500 Brett Cannon wrote: > On Tue, Nov 19, 2013 at 4:04 PM, Antoine Pitrou wrote: > > > > > Hello, > > > > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > > latest amended form. Here is the last call for any comments or > > arguments again

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-19 Thread Brett Cannon
On Tue, Nov 19, 2013 at 4:04 PM, Antoine Pitrou wrote: > > Hello, > > Guido has told me that he was ready to approve PEP 428 (pathlib) in its > latest amended form. Here is the last call for any comments or > arguments against approval, before Guido marks the PEP accepted (or > changes his mind

[Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-19 Thread Antoine Pitrou
Hello, Guido has told me that he was ready to approve PEP 428 (pathlib) in its latest amended form. Here is the last call for any comments or arguments against approval, before Guido marks the PEP accepted (or changes his mind :-)). Regards Antoine. __