summaryrefslogtreecommitdiffstats
path: root/Doc/library/pathlib.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37689: add Path.is_relative_to() method (GH-14982)Hai Shi2019-08-131-1/+14
|
* 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
|\ \ | |/
| * 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
|