Eli Bendersky added the comment:
Antoine, am I missing something - I don't see documentation for the
construction of Path/PurePath?
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
Antoine Pitrou added the comment:
Antoine, am I missing something - I don't see documentation for the
construction of Path/PurePath?
It's there:
http://docs.python.org/dev/library/pathlib.html#pathlib.PurePath
--
___
Python tracker
Eli Bendersky added the comment:
Yes, I've seen that. What I mean is that there's no clear signature defined
with each argument explained, as the other stdlib documentation usually does.
Section 11.1.2.1 uses a more descriptive approach, while I was also expecting a
formal specification.
I
Antoine Pitrou added the comment:
Well, it depends how much formal :-)
The text does say: Path constructors accept an arbitrary number of
positional arguments. When called without any argument, a path object points to
the current directory [etc.]
I'm not against a more formal description,
Eli Bendersky added the comment:
It's just a matter of looking for a familiar pattern while going over an
unfamiliar doc page, I guess. I'll give it a try and see if it helps.
Another question: What is the real purpose of pure paths? One thing I see is
using them to, say, manipulate Windows
Antoine Pitrou added the comment:
Another question: What is the real purpose of pure paths? One thing I
see is using them to, say, manipulate Windows paths on a Posix machine
for some reason.
Yes. Also, if some reason you want to be sure you're only doing path
computations, not I/O.
Any
Eli Bendersky added the comment:
Antoine Pitrou added the comment:
Another question: What is the real purpose of pure paths? One thing I
see is using them to, say, manipulate Windows paths on a Posix machine
for some reason.
Yes. Also, if some reason you want to be sure you're only
Antoine Pitrou added the comment:
Another question: What is the real purpose of pure paths? One thing I
see is using them to, say, manipulate Windows paths on a Posix machine
for some reason.
Yes. Also, if some reason you want to be sure you're only doing path
computations, not
Eli Bendersky added the comment:
Thanks for the clarifications, Antoine. I'll see if I can come up with a doc
patch that will try to emphasize these points. I'll probably just open a new,
doc-issue to stop overloading this one.
--
___
Python
Antoine Pitrou added the comment:
Updated patch addressing review comments.
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file32776/pathlib3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
___
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file32776/pathlib3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file32777/pathlib3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
___
Antoine Pitrou added the comment:
I plan to commit soon, if there are no further comments.
Remember the pathlib API is provisional, so API changes can still be made later
if deemed necessary.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 43377dcfb801 by Antoine Pitrou in branch 'default':
Issue #19673: Add pathlib to the stdlib as a provisional module (PEP 428).
http://hg.python.org/cpython/rev/43377dcfb801
--
nosy: +python-dev
___
Antoine Pitrou added the comment:
I'm closing this issue. Please make any further comments in new issues!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou:
Here is a patch integrating pathlib and its docs.
Note that this was already briefly reviewed by Guido.
--
components: Library (Lib)
files: pathlib.patch
keywords: patch
messages: 203540
nosy: larry, pitrou
priority: release blocker
severity: normal
Antoine Pitrou added the comment:
New patch with a whatsnew entry.
--
Added file: http://bugs.python.org/file32740/pathlib2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19673
___
18 matches
Mail list logo