summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
|
* Back out pathlib.Path.path attr. (Merge 3.4->3.5)Guido van Rossum2016-05-191-7/+0
|\
| * Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.Guido van Rossum2016-05-191-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 raiseBerker Peksag2016-03-111-0/+6
| | | | | | | | NotImplementedError instead of ImportError.
* | Issue #23076: Path.glob() now raises a ValueError if it's called with anBerker Peksag2016-01-301-0/+2
| | | | | | | | | | | | invalid pattern. Patch by Thomas Nyberg.
* | Add another try/except PermissionError to avoid depending on listdir order. ↵Guido van Rossum2016-01-071-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 Rossum2016-01-071-5/+8
| | | | | | | | Fix issues #24120 and #26012.
* | Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)Guido van Rossum2016-01-061-0/+7
|\ \ | |/
| * Issue #22570: Add 'path' attribute to pathlib.Path objects.Guido van Rossum2016-01-061-0/+7
| |
* | Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+1
|\ \ | |/ | | | | pathlib.Path.[r]glob(). (Merge 3.4->3.5)
| * Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+1
| | | | | | | | pathlib.Path.[r]glob().
* | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich ↵Guido van Rossum2016-01-061-25/+35
|\ \ | |/ | | | | Petri. (Merge 3.4->3.5)
| * Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.Guido van Rossum2016-01-061-25/+35
| |
* | Issue #25417: Remove the extra dot from docstringBerker Peksag2015-10-221-1/+1
| |
* | Issue #25417: Fix typo in Path.samefile() docstringBerker Peksag2015-10-211-2/+2
| | | | | | | | Reported by Antony Lee.
* | Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵Antoine Pitrou2015-02-151-0/+4
|\ \ | |/ | | | | | | | | in pathlib. Detected and fixed by Serhiy.
| * Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵Antoine Pitrou2015-02-151-0/+4
| | | | | | | | | | | | in pathlib. Detected and fixed by Serhiy.
* | Issue #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-3/+0
|\ \ | |/ | | | | returned NotImplemented. Removed incorrect implementations of __ne__().
| * Issue #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-3/+0
| | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__().
* | Issue #19777: Provide a home() classmethod on Path objects.Antoine Pitrou2015-01-121-0/+7
| | | | | | | | Contributed by Victor Salgado and Mayank Tripathi.
* | whitespaceAntoine Pitrou2014-12-301-5/+5
| |
* | Issue #19776: Add a expanduser() method on Path objects.Antoine Pitrou2014-12-301-0/+56
| | | | | | | | Patch by Serhiy.
* | Close #22370: Windows detection in pathlib is now more robust.Antoine Pitrou2014-11-181-5/+4
|\ \ | |/
| * Close #22370: Windows detection in pathlib is now more robust.Antoine Pitrou2014-11-181-5/+4
| |
* | Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵Antoine Pitrou2014-10-301-9/+9
|\ \ | |/ | | | | return False when the underlying stat call raises NotADirectoryError.
| * Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵Antoine Pitrou2014-10-301-9/+9
| | | | | | | | return False when the underlying stat call raises NotADirectoryError.
* | Closes #20218: Added convenience methods read_text/write_text and read_bytes/Georg Brandl2014-10-011-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 mimicBarry Warsaw2014-08-051-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 fixesAntoine Pitrou2014-07-071-4/+7
|\ \ | |/
| * Issue #20639: calling Path.with_suffix('') allows removing the suffix again.Antoine Pitrou2014-07-071-4/+3
| | | | | | | | Patch by July Tikhonov.
| * Issue #21714: Disallow the construction of invalid paths using ↵Antoine Pitrou2014-07-071-0/+4
| | | | | | | | Path.with_name(). Original patch by Antony Lee.
* | Issue #19775: Add a samefile() method to pathlib Path objects.Antoine Pitrou2014-05-131-0/+11
|/ | | | Initial patch by Vajrasky Kok.
* Issue #21127: Path objects can now be instantiated from str subclass ↵Antoine Pitrou2014-04-221-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 Pitrou2014-01-021-0/+6
|
* Issue #19918: Fix PurePath.relative_to() under Windows.Antoine Pitrou2013-12-281-12/+8
|
* Issue #19921: When Path.mkdir() is called with parents=True, any missing ↵Antoine Pitrou2013-12-161-1/+1
| | | | | | parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command). Patch by Serhiy.
* Issue #19887: Improve the Path.resolve() algorithm to support certain ↵Antoine Pitrou2013-12-161-35/+40
| | | | | | symlink chains. Original patch by Serhiy.
* Issue #19908: pathlib now joins relative Windows paths correctly when a driveSerhiy Storchaka2013-12-061-5/+9
| | | | is present. Original patch by Antoine Pitrou.
* Issue #19872: remove unused imports in pathlib. Patch by Vajrasky Kok.Antoine Pitrou2013-12-031-9/+2
|
* Issue #19852: move Path._raw_open() around, as it is now a private method.Antoine Pitrou2013-12-021-9/+9
| | | | Patch by Vajrasky Kok.
* Issue #19715: try the utime(..., None) approach again, now that it should be ↵Antoine Pitrou2013-11-231-3/+1
| | | | more precise under Windows
* Revert utime(..., None) strategy (it has too poor resolution under Windows) ↵Antoine Pitrou2013-11-231-1/+3
| | | | | | and restore the previous test workaround (issue #19715)
* Trying other strategy for #19715: use utime(..., None)Antoine Pitrou2013-11-231-3/+1
|
* Fix whitespaceAntoine Pitrou2013-11-221-1/+0
|
* Issue #19673: Add pathlib to the stdlib as a provisional module (PEP 428).Antoine Pitrou2013-11-221-0/+1287