Łukasz Langa
47320a652e
Document Path.is_mount(), update Misc/ACKS and Misc/NEWS ( #2980 )
2017-08-01 16:47:50 -07:00
Jamiel Almeida
ae8750bca8
bpo-24899: Add comparison table for os.path -> pathlib (GH-1753)
2017-06-02 11:36:02 -07:00
Marco Buttu
7b2491a6aa
bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616)
2017-04-13 17:17:59 +03:00
Steve Dower
98eb360531
Issue #19717 : Makes Path.resolve() succeed on paths that do not exist (patch by Vajrasky Kok)
2016-11-09 12:58:17 -08:00
Ned Deily
bf7dcb9cd0
Remove spurious article.
2016-10-15 15:13:20 -04:00
Ned Deily
11194f7e0f
Remove spurious article.
2016-10-15 15:12:03 -04:00
Berker Peksag
009bc05fdc
Merge from 3.5
2016-10-01 01:07:17 +03:00
Berker Peksag
5e3677d7af
Fix markup in pathlib.rst
2016-10-01 01:06:52 +03:00
Berker Peksag
50bb940ab8
Merge from 3.5
2016-10-01 01:03:01 +03:00
Berker Peksag
06a8ac0f26
Fix Path.glob() link, reported by SilentGhost
2016-10-01 01:02:39 +03:00
Zachary Ware
8ec8749a38
Closes #27722 : Merge with 3.5
2016-08-09 17:10:53 -05:00
Zachary Ware
7a26da5845
Issue #27722 : Fix default for touch method's 'mode' argument
2016-08-09 17:10:39 -05:00
Berker Peksag
663dacda4d
Issue #27180 : Merge from 3.5
2016-07-14 07:45:24 +03:00
Berker Peksag
2b8792137b
Issue #27180 : Clarify Path.rename() behavior on Unix systems
...
Patch by Evelyn Mitchell.
2016-07-14 07:44:59 +03:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Brett Cannon
568be63248
Issue #27186 : Add os.PathLike support to pathlib.
...
This adds support both to pathlib.PurePath's constructor as well as
implementing __fspath__(). This removes the provisional status for
pathlib.
Initial patch by Dusty Phillips.
2016-06-10 12:20:49 -07:00
Guido van Rossum
03e6061956
Back out pathlib.Path.path attr. (Merge 3.5->3.6)
2016-05-19 13:11:17 -07:00
Guido van Rossum
387e6e3817
Back out pathlib.Path.path attr. (Merge 3.4->3.5)
2016-05-19 13:10:20 -07:00
Guido van Rossum
3d4d01f614
Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.
...
These added a path attribute to pathlib.Path objects, and docs.
Instead, we're going to use PEP 519.
(Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
2016-05-19 13:00:21 -07:00
Guido van Rossum
f08a308ebb
Docs for issue #22570 . (Merge 3.5->3.6)
2016-01-06 11:37:52 -08:00
Guido van Rossum
1469d744bc
Cross-reference os.DirEntry and pathlib.Path for issue #22570 .
2016-01-06 11:36:03 -08:00
Guido van Rossum
05075203c5
Add versionadded (3.4.5) to docs for issue #22570 . (Merge 3.4->3.5)
2016-01-06 11:26:36 -08:00
Guido van Rossum
b1360543e5
Add versionadded (3.4.5) to docs for issue #22570 .
2016-01-06 11:23:31 -08:00
Guido van Rossum
406005144b
Docs for issue #22570 . (Merge 3.4->3.5)
2016-01-06 11:16:28 -08:00
Guido van Rossum
df85946e8a
Docs for issue #22570 .
2016-01-06 11:15:52 -08:00
Victor Stinner
91108f049f
Issue #25210 : Change error message of do_richcompare()
...
Don't add parenthesis to type names. Add also quotes around the type names.
Before:
TypeError: unorderable types: int() < NoneType()
After:
TypeError: '<' not supported between instances of 'int' and 'NoneType'
2015-10-14 18:25:31 +02:00
Antoine Pitrou
8ad751e024
Close #23904 : fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
2015-04-12 00:08:02 +02:00
Antoine Pitrou
8d0c478601
Close #23904 : fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
2015-04-12 00:08:35 +02:00
Antoine Pitrou
17cba7daf5
Issue #19777 : Provide a home() classmethod on Path objects.
...
Contributed by Victor Salgado and Mayank Tripathi.
2015-01-12 21:03:41 +01:00
Antoine Pitrou
8477ed6048
Issue #19776 : Add a expanduser() method on Path objects.
...
Patch by Serhiy.
2014-12-30 20:54:45 +01:00
Georg Brandl
ea68398355
Closes #20218 : Added convenience methods read_text/write_text and read_bytes/
...
write_bytes to pathlib.Path objects.
Thanks to Christopher Welborn and Ram Rachum for original patches.
2014-10-01 19:12:33 +02:00
Berker Peksag
131caba074
Revert #22251
2014-09-28 00:01:55 +03:00
Berker Peksag
9c1dba2758
Revert #22251
2014-09-28 00:00:58 +03:00
Berker Peksag
f7fee33104
Issue #22251 : Fix ReST markup to avoid errors building docs.
2014-09-27 23:22:35 +03:00
Berker Peksag
3749404ba5
Issue #22251 : Fix ReST markup to avoid errors building docs.
2014-09-27 23:21:35 +03:00
Barry Warsaw
7c549c4e64
- Issue #21539 : Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
...
`mkdir -p` and `os.makedirs()` functionality. When true, ignore
FileExistsErrors. Patch by Berker Peksag.
(With minor cleanups, additional tests, doc tweaks, etc. by Barry)
Also:
* Remove some unused imports in test_pathlib.py reported by pyflakes.
2014-08-05 11:28:12 -04:00
Antoine Pitrou
43e3d9409d
Issue #19775 : Add a samefile() method to pathlib Path objects.
...
Initial patch by Vajrasky Kok.
2014-05-13 10:50:15 +02:00
Larry Hastings
3732ed2414
Merge in all documentation changes since branching 3.4.0rc1.
2014-03-15 21:13:56 -07:00
Antoine Pitrou
ef85119618
Issue #20765 : Add missing documentation for PurePath.with_name() and PurePath.with_suffix().
2014-02-25 20:33:02 +01:00
Antoine Pitrou
f6abb70b48
Mention specific exceptions instead of OSError where appropriate.
2013-12-16 21:00:53 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Eli Bendersky
b6e66ebdf7
Some minor clarifications in the documentation of pathlib + inheritance diagram
2013-11-28 06:53:05 -08:00
Ned Deily
c034156f26
Change pathlib documentation to use "raise" instead of "throw".
2013-11-27 14:42:55 -08:00
Serhiy Storchaka
03cc56539f
Issue #19793 : Improved markup for True/False constants in pathlib documentation.
2013-11-26 21:37:12 +02:00
Andrew Kuchling
7a4e2d1751
Wording changes to pathlib docs.
...
Only possibly-controversial change: joinpath() was described as:
"Calling this method is equivalent to indexing the path with each of
the *other* arguments in turn."
'Indexing' is an odd word to use, because you can't subscript Path or
PurePath objects, so I changed it to "combining".
2013-11-22 15:45:02 -05:00
Antoine Pitrou
31119e4f10
Issue #19673 : Add pathlib to the stdlib as a provisional module (PEP 428).
2013-11-22 17:38:12 +01:00