summaryrefslogtreecommitdiffstats
path: root/Doc/library/pathlib.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18782)Miss Islington (bot)2020-03-101-1/+1
| | | | | | | | (cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Automerge-Triggered-By: @brettcannon
* Doc: Be explicit that Pathlib resolve was strict before 3.6. (GH-11316)Miss Islington (bot)2019-05-081-1/+1
| | | | | (cherry picked from commit 1d4b16051f8550fd7dada3670a3e83ae13b99d3b) Co-authored-by: Julien Palard <julien@palard.fr>
* [3.7] bpo-22062: Updated docstring and documentation for pathlib (GH-8519) ↵Miss Islington (bot)2019-02-111-3/+3
| | | | | | | | | | | | | | | (GH-11817) Original patch by Mike Short https://bugs.python.org/issue22062 (cherry picked from commit 537b6caa565ec2fc304ba6f4400cd347ce2af64b) Co-authored-by: Eivind Teig <eivind.teig@gmail.com> https://bugs.python.org/issue22062
* bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)Miss Islington (bot)2018-10-051-20/+27
| | | | | | | | | | | | | | | | | | | | The added functions are as below : | os module | Pathlib | | ------------- | ------------- | | os.chmod | Path.chmod | | os.mkdir | Path.mkdir | | os.rename | Path.rename | | os.replace | Path.replace | | os.rmdir | Path.rmdir | | os.remove, os.unlink | Path.unlink | | os.path.samefile | Path.samefile | Thanks https://bugs.python.org/issue34825 (cherry picked from commit 6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)Miss Islington (bot)2018-08-061-1/+2
| | | | | | Patch by Terry Jan Reedy. (cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)Miss Islington (bot)2018-08-031-1/+5
| | | | | (cherry picked from commit 46dc4e34ed8005a688d7f3512844ef227a3465f4) Co-authored-by: Stefan Otte <stefan.otte@gmail.com>
* Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)Łukasz Langa2017-08-011-0/+12
|
* bpo-24899: Add comparison table for os.path -> pathlib (GH-1753)Jamiel Almeida2017-06-021-0/+33
|
* bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616)Marco Buttu2017-04-131-1/+11
|
* Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch ↵Steve Dower2016-11-091-4/+8
| | | | by Vajrasky Kok)
* Remove spurious article.Ned Deily2016-10-151-1/+1
|\
| * Remove spurious article.Ned Deily2016-10-151-1/+1
| |
* | Merge from 3.5Berker Peksag2016-09-301-1/+1
|\ \ | |/
| * Fix markup in pathlib.rstBerker Peksag2016-09-301-1/+1
| |
* | Merge from 3.5Berker Peksag2016-09-301-1/+1
|\ \ | |/
| * Fix Path.glob() link, reported by SilentGhostBerker Peksag2016-09-301-1/+1
| |
* | Closes #27722: Merge with 3.5Zachary Ware2016-08-091-1/+1
|\ \ | |/
| * Issue #27722: Fix default for touch method's 'mode' argumentZachary Ware2016-08-091-1/+1
| |
* | Issue #27180: Merge from 3.5Berker Peksag2016-07-141-2/+3
|\ \ | |/
| * Issue #27180: Clarify Path.rename() behavior on Unix systemsBerker Peksag2016-07-141-2/+3
| | | | | | | | Patch by Evelyn Mitchell.
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-1/+5
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-1/+5
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | Issue #27186: Add os.PathLike support to pathlib.Brett Cannon2016-06-101-7/+16
| | | | | | | | | | | | | | | | 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.
* | Back out pathlib.Path.path attr. (Merge 3.5->3.6)Guido van Rossum2016-05-191-22/+0
|\ \ | |/
| * Back out pathlib.Path.path attr. (Merge 3.4->3.5)Guido van Rossum2016-05-191-22/+0
| |\
| | * Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.Guido van Rossum2016-05-191-18/+0
| | | | | | | | | | | | | | | | | | | | | 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.)
* | | Docs for issue #22570. (Merge 3.5->3.6)Guido van Rossum2016-01-061-0/+22
|\ \ \ | |/ /
| * | Cross-reference os.DirEntry and pathlib.Path for issue #22570.Guido van Rossum2016-01-061-0/+4
| | |
| * | Add versionadded (3.4.5) to docs for issue #22570. (Merge 3.4->3.5)Guido van Rossum2016-01-061-0/+1
| |\ \ | | |/
| | * Add versionadded (3.4.5) to docs for issue #22570.Guido van Rossum2016-01-061-0/+1
| | |
| * | Docs for issue #22570. (Merge 3.4->3.5)Guido van Rossum2016-01-061-0/+17
| |\ \ | | |/
| | * Docs for issue #22570.Guido van Rossum2016-01-061-0/+17
| | |
* | | Issue #25210: Change error message of do_richcompare()Victor Stinner2015-10-141-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | 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'
* | Close #23904: fix pathlib documentation misleadingly mentioning that bytes ↵Antoine Pitrou2015-04-111-2/+2
|\ \ | |/ | | | | objects are accepted in the PurePath constructor
| * Close #23904: fix pathlib documentation misleadingly mentioning that bytes ↵Antoine Pitrou2015-04-111-2/+2
| | | | | | | | objects are accepted in the PurePath constructor
* | Issue #19777: Provide a home() classmethod on Path objects.Antoine Pitrou2015-01-121-0/+11
| | | | | | | | Contributed by Victor Salgado and Mayank Tripathi.
* | Issue #19776: Add a expanduser() method on Path objects.Antoine Pitrou2014-12-301-3/+12
| | | | | | | | Patch by Serhiy.
* | Closes #20218: Added convenience methods read_text/write_text and read_bytes/Georg Brandl2014-10-011-0/+61
| | | | | | | | | | | | write_bytes to pathlib.Path objects. Thanks to Christopher Welborn and Ram Rachum for original patches.
* | Revert #22251Berker Peksag2014-09-271-3/+0
|\ \ | |/
| * Revert #22251Berker Peksag2014-09-271-3/+0
| |
* | Issue #22251: Fix ReST markup to avoid errors building docs.Berker Peksag2014-09-271-0/+3
|\ \ | |/
| * Issue #22251: Fix ReST markup to avoid errors building docs.Berker Peksag2014-09-271-0/+3
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-0/+30
| |
* | - Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimicBarry Warsaw2014-08-051-1/+11
| | | | | | | | | | | | | | | | | | | | | | `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.
* | Issue #19775: Add a samefile() method to pathlib Path objects.Antoine Pitrou2014-05-131-0/+19
| | | | | | | | Initial patch by Vajrasky Kok.
* | Issue #20765: Add missing documentation for PurePath.with_name() and ↵Antoine Pitrou2014-02-251-0/+30
|/ | | | PurePath.with_suffix().
* Mention specific exceptions instead of OSError where appropriate.Antoine Pitrou2013-12-161-3/+4
|
* Issue #19921: When Path.mkdir() is called with parents=True, any missing ↵Antoine Pitrou2013-12-161-1/+4
| | | | | | parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command). Patch by Serhiy.
* Some minor clarifications in the documentation of pathlib + inheritance diagramEli Bendersky2013-11-281-68/+80
|
* Change pathlib documentation to use "raise" instead of "throw".Ned Deily2013-11-271-2/+2
|