Re: [Python-Dev] PEP 428 - pathlib API questions

2013-11-25 Thread Charles-François Natali
2013/11/25 Greg Ewing : > Ben Hoyt wrote: >> >> However, it seems there was no further discussion about why not >> "extension" and "extensions"? I have never heard a filename extension >> being called a "suffix". > > > You can't have read many unix man pages, then! I just > searched for "suffix" in

Re: [Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info)

2013-11-25 Thread Nick Coghlan
On 25 Nov 2013 13:18, "Ben Hoyt" wrote: > > > The idea of the rich stat result object is that has all that info > > prepopulated, based on an initial stat call. "Caching" it amounts to "keep a > > reference to it". > > > > It is suggested that it would be a subset of the pathlib.Path API: > > http

Re: [Python-Dev] [Python-checkins] cpython (2.7): Fix test_fcntl to run properly on systems that do not support the flags

2013-11-25 Thread Nick Coghlan
On 25 Nov 2013 14:46, "gregory.p.smith" wrote: > > http://hg.python.org/cpython/rev/cac7319c5972 > changeset: 87537:cac7319c5972 > branch: 2.7 > parent: 87534:3981e57a7bdc > user:Gregory P. Smith > date:Mon Nov 25 04:45:27 2013 + > summary: > Fix test_fcntl to ru

Re: [Python-Dev] [Python-checkins] cpython: Close #19762: Fix name of _get_traces() and _get_object_traceback() function

2013-11-25 Thread Jim Jewett
Why are these functions (get_traces and get_object_traceback) private? (1) Is the whole module provisional? At one point, I had thought so, but I don't see that in the PEP or implementation. (I'm not sure that it should be provisional, but I want to be sure that the decision is intentional.) (

Re: [Python-Dev] [Python-checkins] cpython: Close #19762: Fix name of _get_traces() and _get_object_traceback() function

2013-11-25 Thread Victor Stinner
2013/11/25 Jim Jewett : > Why are these functions (get_traces and get_object_traceback) private? _get_object_traceback() is wrapped to get a nice Python object: http://hg.python.org/cpython/file/6ec6facb69ca/Lib/tracemalloc.py#l208 _get_traces() is private, it is used internally by take_snapshot(

Re: [Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info)

2013-11-25 Thread Ben Hoyt
> OK, so I'm a Windows dev, but my understanding is that d_ino is useful > to tell if two files are identical - hard links to the same physical > file have the same d_ino value. I don't believe it's possible to do > this on Windows at all. > > I've seen it used in tools like diff, to short-circuit

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-25 Thread Steve Dower
Steve Dower wrote: > The advice I've been given on FILE* is that there's probably no way to make it > work correctly due to its internal buffering. Unfortunately, there are more > places where this leaks through than just the APIs using them - extensions > that > call os.dup(fd), PyNumber_AsSsize_

Re: [Python-Dev] [Python-checkins] cpython (2.7): Fix test_fcntl to run properly on systems that do not support the flags

2013-11-25 Thread Gregory P. Smith
On Mon, Nov 25, 2013 at 12:46 AM, Nick Coghlan wrote: > > On 25 Nov 2013 14:46, "gregory.p.smith" > wrote: > > > > http://hg.python.org/cpython/rev/cac7319c5972 > > changeset: 87537:cac7319c5972 > > branch: 2.7 > > parent: 87534:3981e57a7bdc > > user:Gregory P. Smith > > dat