Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | | |||||
* | | Issue #25417: Remove the extra dot from docstring | Berker Peksag | 2015-10-22 | 1 | -1/+1 |
| | | |||||
* | | Issue #25417: Fix typo in Path.samefile() docstring | Berker Peksag | 2015-10-21 | 1 | -2/+2 |
| | | | | | | | | Reported by Antony Lee. | ||||
* | | Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵ | Antoine Pitrou | 2015-02-15 | 1 | -0/+4 |
|\ \ | |/ | | | | | | | | | in pathlib. Detected and fixed by Serhiy. | ||||
| * | Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵ | Antoine Pitrou | 2015-02-15 | 1 | -0/+4 |
| | | | | | | | | | | | | in pathlib. Detected and fixed by Serhiy. | ||||
* | | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 1 | -3/+0 |
|\ \ | |/ | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
| * | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 1 | -3/+0 |
| | | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
* | | Issue #19777: Provide a home() classmethod on Path objects. | Antoine Pitrou | 2015-01-12 | 1 | -0/+7 |
| | | | | | | | | Contributed by Victor Salgado and Mayank Tripathi. | ||||
* | | whitespace | Antoine Pitrou | 2014-12-30 | 1 | -5/+5 |
| | | |||||
* | | Issue #19776: Add a expanduser() method on Path objects. | Antoine Pitrou | 2014-12-30 | 1 | -0/+56 |
| | | | | | | | | Patch by Serhiy. | ||||
* | | Close #22370: Windows detection in pathlib is now more robust. | Antoine Pitrou | 2014-11-18 | 1 | -5/+4 |
|\ \ | |/ | |||||
| * | Close #22370: Windows detection in pathlib is now more robust. | Antoine Pitrou | 2014-11-18 | 1 | -5/+4 |
| | | |||||
* | | Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵ | Antoine Pitrou | 2014-10-30 | 1 | -9/+9 |
|\ \ | |/ | | | | | return False when the underlying stat call raises NotADirectoryError. | ||||
| * | Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵ | Antoine Pitrou | 2014-10-30 | 1 | -9/+9 |
| | | | | | | | | return False when the underlying stat call raises NotADirectoryError. | ||||
* | | Closes #20218: Added convenience methods read_text/write_text and read_bytes/ | Georg Brandl | 2014-10-01 | 1 | -0/+33 |
| | | | | | | | | | | | | write_bytes to pathlib.Path objects. Thanks to Christopher Welborn and Ram Rachum for original patches. | ||||
* | | - Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic | Barry Warsaw | 2014-08-05 | 1 | -2/+9 |
| | | | | | | | | | | | | | | | | | | | | | | `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. | ||||
* | | Merge pathlib fixes | Antoine Pitrou | 2014-07-07 | 1 | -4/+7 |
|\ \ | |/ | |||||
| * | Issue #20639: calling Path.with_suffix('') allows removing the suffix again. | Antoine Pitrou | 2014-07-07 | 1 | -4/+3 |
| | | | | | | | | Patch by July Tikhonov. | ||||
| * | Issue #21714: Disallow the construction of invalid paths using ↵ | Antoine Pitrou | 2014-07-07 | 1 | -0/+4 |
| | | | | | | | | Path.with_name(). Original patch by Antony Lee. | ||||
* | | Issue #19775: Add a samefile() method to pathlib Path objects. | Antoine Pitrou | 2014-05-13 | 1 | -0/+11 |
|/ | | | | Initial patch by Vajrasky Kok. | ||||
* | Issue #21127: Path objects can now be instantiated from str subclass ↵ | Antoine Pitrou | 2014-04-22 | 1 | -2/+2 |
| | | | | | | instances (such as numpy.str_). Thanks to Antony Lee for the report and preliminary patch. | ||||
* | Issue #20111: pathlib.Path.with_suffix() now sanity checks the given suffix. | Antoine Pitrou | 2014-01-02 | 1 | -0/+6 |
| |