Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on ↵ | Christoph Reiter | 2020-01-28 | 1 | -3/+1 | |
| | | | | | | | | | Windows (GH-17961) In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows. Path.expanduser/home still honored HOME despite being documented as behaving the same as os.path.expanduser. This makes them also ignore HOME so that both implementations behave the same way again. | |||||
* | bpo-38811: Check for presence of os.link method in pathlib (GH-17225) | Toke Høiland-Jørgensen | 2019-12-16 | 1 | -1/+6 | |
| | | | | | | | | | | | Commit 6b5b013bcc22 ("bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)") introduced a new link_to method in pathlib. However, this makes pathlib crash when the 'os' module is missing a 'link' method. Fix this by checking for the presence of the 'link' method on pathlib module import, and if it's not present, turn it into a runtime error like those emitted when there is no lchmod() or symlink(). Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> | |||||
* | bpo-38994: Implement __class_getitem__ for PathLike (GH-17498) | Batuhan Taşkaya | 2019-12-08 | 1 | -0/+3 | |
| | | | https://bugs.python.org/issue38994 | |||||
* | Revert "bpo-38811: Check for presence of os.link method in pathlib. ↵ | Victor Stinner | 2019-11-18 | 1 | -7/+1 | |
| | | | | | (GH-17170)" (#17219) This reverts commit 111772fc27cfe388bc060f019d68a3e33481ec65. | |||||
* | bpo-38811: Check for presence of os.link method in pathlib. (GH-17170) | Toke Høiland-Jørgensen | 2019-11-17 | 1 | -1/+7 | |
| | | | | | Fix also the Path.symplink() method implementation for the case when symlinks are not supported. | |||||
* | bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) | Ram Rachum | 2019-11-02 | 1 | -2/+10 | |
| | | | | | | | | | | Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking. https://bugs.python.org/issue38422 Automerge-Triggered-By: @pitrou | |||||
* | bpo-30618: add readlink to pathlib.Path (GH-8285) | Girts | 2019-10-23 | 1 | -0/+9 | |
| | | | | | | | | | | | This adds a "readlink" method to pathlib.Path objects that calls through to os.readlink. https://bugs.python.org/issue30618 Automerge-Triggered-By: @gpshead | |||||
* | bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860) | Serhiy Storchaka | 2019-10-21 | 1 | -18/+20 | |
| | ||||||
* | bpo-31163: Added return values to pathlib.Path instance's rename and replace ↵ | hui shang | 2019-09-11 | 1 | -2/+6 | |
| | | | | | methods. (GH-13582) * bpo-31163: Added return values to pathlib.Path instance's rename and replace methods. | |||||
* | bpo-37689: add Path.is_relative_to() method (GH-14982) | Hai Shi | 2019-08-13 | 1 | -0/+9 | |
| | ||||||
* | bpo-34775: Return NotImplemented in PurePath division. (GH-9509) | aiudirog | 2019-08-08 | 1 | -2/+8 | |
| | ||||||
* | bpo-36035: fix Path.rglob for broken links (GH-11988) | Jörg Stucke | 2019-05-21 | 1 | -3/+10 | |
| | | | Links creating an infinite symlink loop would raise an exception. | |||||
* | bpo-33123: pathlib: Add missing_ok parameter to Path.unlink (GH-6191) | zlohhcuB treboR | 2019-05-15 | 1 | -2/+6 | |
| | | | | | | 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 | |||||
* | bpo-36766: Typos in docs and code comments (GH-13116) | penguindustin | 2019-05-06 | 1 | -1/+1 | |
| | ||||||
* | bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990) | Joannah Nanjekye | 2019-05-04 | 1 | -0/+10 | |
| | ||||||
* | bpo-22062: Updated docstring and documentation for pathlib (GH-8519) | Eivind Teig | 2019-02-11 | 1 | -2/+3 | |
| | | | | | | Original patch by Mike Short https://bugs.python.org/issue22062 | |||||
* | bpo-35692: pathlib no longer raises when checking file and directory ↵ | Steve Dower | 2019-02-04 | 1 | -9/+18 | |
| | | | | existence on drives that are not ready (GH-11746) | |||||
* | bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵ | Serhiy Storchaka | 2018-09-18 | 1 | -0/+24 | |
| | | | | | | | | | | 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-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542) | Przemysław Spodymek | 2018-08-27 | 1 | -10/+19 | |
| | ||||||
* | bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663) | Berker Peksag | 2018-08-11 | 1 | -1/+1 | |
| | ||||||
* | bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655) | Stefan Otte | 2018-08-03 | 1 | -2/+4 | |
| | ||||||
* | bpo-31972: Improve docstrings for pathlib classes (#5310) | chason | 2018-02-18 | 1 | -1/+29 | |
| | ||||||
* | bpo-30152: Reduce the number of imports for argparse. (#1269) | Serhiy Storchaka | 2017-09-25 | 1 | -1/+1 | |
| | ||||||
* | bpo-30897: Add is_mount() to pathlib.Path (#2669) | Cooper Lees | 2017-08-01 | 1 | -0/+24 | |
| | | | | * Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path) * Add tests for is_mount() | |||||
* | bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893) | Antoine Pietri | 2017-06-07 | 1 | -11/+8 | |
| | ||||||
* | bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) | Jon Dufresne | 2017-05-18 | 1 | -4/+1 | |
| | | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max()) | |||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -1/+1 | |
| | | | | collections. (#1263) | |||||
* | bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089) | Armin Rigo | 2017-04-13 | 1 | -2/+2 | |
| | ||||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -1/+0 | |
| | | | Make also minor PEP8 coding style fixes on modified imports. | |||||
* | bpo-29900: Simplify pathlib implementation. (#814) | Serhiy Storchaka | 2017-03-25 | 1 | -29/+17 | |
| | | | | Since functions in the os module support path-like objects, explicit converting Path to str no longer needed. | |||||
* | bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) | Serhiy Storchaka | 2017-03-24 | 1 | -17/+15 | |
| | | | | when the OS gives priority to errors such as EACCES over EEXIST. | |||||
* | Issue #29416: Prevent infinite loop in pathlib.Path.mkdir | Steve Dower | 2017-02-04 | 1 | -1/+1 | |
|\ | ||||||
| * | Issue #29416: Prevent infinite loop in pathlib.Path.mkdir | Steve Dower | 2017-02-04 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows | Steve Dower | 2016-12-29 | 1 | -1/+3 | |
| | | ||||||
* | | Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch ↵ | Steve Dower | 2016-11-09 | 1 | -6/+23 | |
| | | | | | | | | by Vajrasky Kok) | |||||
* | | Issue #26032: Optimized globbing in pathlib by using os.scandir(); it is now | Serhiy Storchaka | 2016-09-07 | 1 | -55/+39 | |
| | | | | | | | | about 1.5--4 times faster. | |||||
* | | Issue #27186: Add os.PathLike support to pathlib. | Brett Cannon | 2016-06-10 | 1 | -6/+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. | |||||
* | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 | |
| | ||||||
* | Back out pathlib.Path.path attr. (Merge 3.4->3.5) | Guido van Rossum | 2016-05-19 | 1 | -7/+0 | |
|\ | ||||||
| * | Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289. | Guido van Rossum | 2016-05-19 | 1 | -7/+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.) | |||||
* | | Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise | Berker Peksag | 2016-03-11 | 1 | -0/+6 | |
| | | | | | | | | NotImplementedError instead of ImportError. | |||||
* | | Issue #23076: Path.glob() now raises a ValueError if it's called with an | Berker Peksag | 2016-01-30 | 1 | -0/+2 | |
| | | | | | | | | | | | | invalid pattern. Patch by Thomas Nyberg. | |||||
* | | Add another try/except PermissionError to avoid depending on listdir order. ↵ | Guido van Rossum | 2016-01-07 | 1 | -5/+8 | |
|\ \ | |/ | | | | | Fix issues #24120 and #26012. (Merge 3.4->3.5) | |||||
| * | Add another try/except PermissionError to avoid depending on listdir order. ↵ | Guido van Rossum | 2016-01-07 | 1 | -5/+8 | |
| | | | | | | | | Fix issues #24120 and #26012. | |||||
* | | Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5) | Guido van Rossum | 2016-01-06 | 1 | -0/+7 | |
|\ \ | |/ | ||||||
| * | Issue #22570: Add 'path' attribute to pathlib.Path objects. | Guido van Rossum | 2016-01-06 | 1 | -0/+7 | |
| | | ||||||
* | | Issue #26012: Don't traverse into symlinks for ** pattern in ↵ | Guido van Rossum | 2016-01-06 | 1 | -1/+1 | |
|\ \ | |/ | | | | | pathlib.Path.[r]glob(). (Merge 3.4->3.5) | |||||
| * | Issue #26012: Don't traverse into symlinks for ** pattern in ↵ | Guido van Rossum | 2016-01-06 | 1 | -1/+1 | |
| | | | | | | | | pathlib.Path.[r]glob(). | |||||
* | | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich ↵ | Guido van Rossum | 2016-01-06 | 1 | -25/+35 | |
|\ \ | |/ | | | | | Petri. (Merge 3.4->3.5) | |||||
| * | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. | Guido van Rossum | 2016-01-06 | 1 | -25/+35 | |
| | |