Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-37689: add Path.is_relative_to() method (GH-14982) | Hai Shi | 2019-08-13 | 1 | -1/+14 |
| | |||||
* | bpo-33123: pathlib: Add missing_ok parameter to Path.unlink (GH-6191) | zlohhcuB treboR | 2019-05-15 | 1 | -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 Palard | 2019-05-08 | 1 | -1/+1 |
| | |||||
* | bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990) | Joannah Nanjekye | 2019-05-04 | 1 | -0/+7 |
| | |||||
* | bpo-22062: Updated docstring and documentation for pathlib (GH-8519) | Eivind Teig | 2019-02-11 | 1 | -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) | Xtreak | 2018-10-05 | 1 | -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 Storchaka | 2018-09-18 | 1 | -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) | Xtreak | 2018-08-06 | 1 | -1/+2 |
| | | | Patch by Terry Jan Reedy. | ||||
* | bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655) | Stefan Otte | 2018-08-03 | 1 | -1/+5 |
| | |||||
* | Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980) | Łukasz Langa | 2017-08-01 | 1 | -0/+12 |
| | |||||
* | bpo-24899: Add comparison table for os.path -> pathlib (GH-1753) | Jamiel Almeida | 2017-06-02 | 1 | -0/+33 |
| | |||||
* | bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616) | Marco Buttu | 2017-04-13 | 1 | -1/+11 |
| | |||||
* | Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch ↵ | Steve Dower | 2016-11-09 | 1 | -4/+8 |
| | | | | by Vajrasky Kok) | ||||
* | Remove spurious article. | Ned Deily | 2016-10-15 | 1 | -1/+1 |
|\ | |||||
| * | Remove spurious article. | Ned Deily | 2016-10-15 | 1 | -1/+1 |
| | | |||||
* | | Merge from 3.5 | Berker Peksag | 2016-09-30 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix markup in pathlib.rst | Berker Peksag | 2016-09-30 | 1 | -1/+1 |
| | | |||||
* | | Merge from 3.5 | Berker Peksag | 2016-09-30 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix Path.glob() link, reported by SilentGhost | Berker Peksag | 2016-09-30 | 1 | -1/+1 |
| | | |||||
* | | Closes #27722: Merge with 3.5 | Zachary Ware | 2016-08-09 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27722: Fix default for touch method's 'mode' argument | Zachary Ware | 2016-08-09 | 1 | -1/+1 |
| | | |||||
* | | Issue #27180: Merge from 3.5 | Berker Peksag | 2016-07-14 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | Issue #27180: Clarify Path.rename() behavior on Unix systems | Berker Peksag | 2016-07-14 | 1 | -2/+3 |
| | | | | | | | | Patch by Evelyn Mitchell. | ||||
* | | Merge Issue #22558. | Terry Jan Reedy | 2016-06-11 | 1 | -1/+5 |
|\ \ | |/ | |||||
| * | Issue #22558: Add remaining doc links to source code for Python-coded modules. | Terry Jan Reedy | 2016-06-11 | 1 | -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 Cannon | 2016-06-10 | 1 | -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 Rossum | 2016-05-19 | 1 | -22/+0 |
|\ \ | |/ | |||||
| * | Back out pathlib.Path.path attr. (Merge 3.4->3.5) | Guido van Rossum | 2016-05-19 | 1 | -22/+0 |
| |\ | |||||
| | * | Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289. | Guido van Rossum | 2016-05-19 | 1 | -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 Rossum | 2016-01-06 | 1 | -0/+22 |
|\ \ \ | |/ / | |||||
| * | | Cross-reference os.DirEntry and pathlib.Path for issue #22570. | Guido van Rossum | 2016-01-06 | 1 | -0/+4 |
| | | | |||||
| * | | Add versionadded (3.4.5) to docs for issue #22570. (Merge 3.4->3.5) | Guido van Rossum | 2016-01-06 | 1 | -0/+1 |
| |\ \ | | |/ | |||||
| | * | Add versionadded (3.4.5) to docs for issue #22570. | Guido van Rossum | 2016-01-06 | 1 | -0/+1 |
| | | | |||||
| * | | Docs for issue #22570. (Merge 3.4->3.5) | Guido van Rossum | 2016-01-06 | 1 | -0/+17 |
| |\ \ | | |/ | |||||
| | * | Docs for issue #22570. | Guido van Rossum | 2016-01-06 | 1 | -0/+17 |
| | | | |||||
* | | | Issue #25210: Change error message of do_richcompare() | Victor Stinner | 2015-10-14 | 1 | -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 Pitrou | 2015-04-11 | 1 | -2/+2 |
|\ \ | |/ | | | | | objects are accepted in the PurePath constructor | ||||
| * | Close #23904: fix pathlib documentation misleadingly mentioning that bytes ↵ | Antoine Pitrou | 2015-04-11 | 1 | -2/+2 |
| | | | | | | | | objects are accepted in the PurePath constructor | ||||
* | | Issue #19777: Provide a home() classmethod on Path objects. | Antoine Pitrou | 2015-01-12 | 1 | -0/+11 |
| | | | | | | | | Contributed by Victor Salgado and Mayank Tripathi. | ||||
* | | Issue #19776: Add a expanduser() method on Path objects. | Antoine Pitrou | 2014-12-30 | 1 | -3/+12 |
| | | | | | | | | Patch by Serhiy. | ||||
* | | Closes #20218: Added convenience methods read_text/write_text and read_bytes/ | Georg Brandl | 2014-10-01 | 1 | -0/+61 |
| | | | | | | | | | | | | write_bytes to pathlib.Path objects. Thanks to Christopher Welborn and Ram Rachum for original patches. | ||||
* | | Revert #22251 | Berker Peksag | 2014-09-27 | 1 | -3/+0 |
|\ \ | |/ | |||||
| * | Revert #22251 | Berker Peksag | 2014-09-27 | 1 | -3/+0 |
| | | |||||
* | | Issue #22251: Fix ReST markup to avoid errors building docs. | Berker Peksag | 2014-09-27 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #22251: Fix ReST markup to avoid errors building docs. | Berker Peksag | 2014-09-27 | 1 | -0/+3 |
| | | |||||
| * | Merge in all documentation changes since branching 3.4.0rc1. | Larry Hastings | 2014-03-16 | 1 | -0/+30 |
| | | |||||
* | | - Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic | Barry Warsaw | 2014-08-05 | 1 | -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 Pitrou | 2014-05-13 | 1 | -0/+19 |
| | | | | | | | | Initial patch by Vajrasky Kok. | ||||
* | | Issue #20765: Add missing documentation for PurePath.with_name() and ↵ | Antoine Pitrou | 2014-02-25 | 1 | -0/+30 |
|/ | | | | PurePath.with_suffix(). | ||||
* | Mention specific exceptions instead of OSError where appropriate. | Antoine Pitrou | 2013-12-16 | 1 | -3/+4 |
| |