summaryrefslogtreecommitdiffstats
path: root/Doc/library/pathlib.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)Steve Dower2021-04-071-7/+14
| | | Co-authored-by: Barney Gale <barney.gale@gmail.com>
* bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)Miss Skeleton (bot)2020-10-031-0/+8
| | | | | (cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf) Co-authored-by: Ram Rachum <ram@rachum.com>
* [3.8] bpo-40486: Specify what happens if directory content change diring ↵Miss Islington (bot)2020-09-041-0/+5
| | | | | | | | iteration (GH-22025) (GH-22094) (cherry picked from commit 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fixed comment about pathlib.link_to: it was added in 3.8, not changed. ↵Miss Islington (bot)2020-08-131-1/+1
| | | | | | | (GH-21851) (#21866) (cherry picked from commit a3eae43aeedb6e6a31adeab3c0c90961d05ab113) Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
* [3.8] bpo-41066: Update the comparison section for os vs pathlib (GH-21261) ↵Antoine Pitrou2020-08-131-0/+3
| | | | | | | | | (GH-21864) (cherry picked from commit 0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com> Automerge-Triggered-By: @pitrou
* bpo-39285: Clarify example for PurePath.match (GH-19458)Miss Islington (bot)2020-04-191-1/+3
| | | | | | | | | | | | | | Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375aa0b838d34067efa3f1b9a1fbc632d0413) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
* [3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)Miss Islington (bot)2020-03-051-1/+1
| | | | | | | | (cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Automerge-Triggered-By: @brettcannon
* bpo-36182: Update pathlib.Path.write_text() docs (GH-12161) (GH-15977)Miss Islington (bot)2019-09-111-0/+3
| | | | | | with the case of an existing file (cherry picked from commit af636f4f91b8289b6dad95cb84123f6e22fd7f4f) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-31163: Added return values to pathlib.Path instance's rename and replace ↵Miss Islington (bot)2019-09-111-5/+14
| | | | | | | | methods. (GH-13582) (GH-15944) * bpo-31163: Added return values to pathlib.Path instance's rename and replace methods. (cherry picked from commit 088a09af4bdeff52b9dedeb7acd1e82069f37d98) Co-authored-by: hui shang <shangdahao@gmail.com>
* bpo-33123: pathlib: Add missing_ok parameter to Path.unlink (GH-6191)‮zlohhcuB treboR2019-05-151-1/+10
| | | | | | Similarly to how several pathlib file creation functions have an "exists_ok" parameter, we should introduce "missing_ok" that makes removal functions not raise an exception when a file or directory is already absent. IMHO, this should cover Path.unlink and Path.rmdir. Note, Path.resolve() has a "strict" parameter since 3.6 that does the same thing. Naming this of this new parameter tries to be consistent with the "exists_ok" parameter as that is more explicit about what it does (as opposed to "strict"). https://bugs.python.org/issue33123
* Doc: Be explicit that Pathlib resolve was strict before 3.6. (GH-11316)Julien Palard2019-05-081-1/+1
|
* bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)Joannah Nanjekye2019-05-041-0/+7
|
* bpo-22062: Updated docstring and documentation for pathlib (GH-8519)Eivind Teig2019-02-111-3/+3
| | | | | | Original patch by Mike Short https://bugs.python.org/issue22062
* bpo-34825: Add more entries to os to pathlib reference table (GH-9608)Xtreak2018-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
* bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵Serhiy Storchaka2018-09-181-1/+11
| | | | | | | | | | to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level.
* bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)Xtreak2018-08-061-1/+2
| | | Patch by Terry Jan Reedy.
* bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)Stefan Otte2018-08-031-1/+5
|
* 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
|\ \ | |/