Serhiy Storchaka
34af5023fc
Issue #21408 : The default __ne__() now returns NotImplemented if __eq__()
...
returned NotImplemented. Removed incorrect implementations of __ne__().
2015-01-26 10:04:15 +02:00
Antoine Pitrou
17cba7daf5
Issue #19777 : Provide a home() classmethod on Path objects.
...
Contributed by Victor Salgado and Mayank Tripathi.
2015-01-12 21:03:41 +01:00
Antoine Pitrou
5d4e27ecee
whitespace
2014-12-30 22:09:42 +01:00
Antoine Pitrou
8477ed6048
Issue #19776 : Add a expanduser() method on Path objects.
...
Patch by Serhiy.
2014-12-30 20:54:45 +01:00
Antoine Pitrou
1d922d0ce9
Close #22370 : Windows detection in pathlib is now more robust.
2014-11-19 00:33:08 +01:00
Antoine Pitrou
c689101a5e
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:15:25 +01:00
Georg Brandl
ea68398355
Closes #20218 : Added convenience methods read_text/write_text and read_bytes/
...
write_bytes to pathlib.Path objects.
Thanks to Christopher Welborn and Ram Rachum for original patches.
2014-10-01 19:12:33 +02:00
Barry Warsaw
7c549c4e64
- Issue #21539 : Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
...
`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.
2014-08-05 11:28:12 -04:00
Antoine Pitrou
006c725426
Merge pathlib fixes
2014-07-06 21:38:35 -04:00
Antoine Pitrou
43e3d9409d
Issue #19775 : Add a samefile() method to pathlib Path objects.
...
Initial patch by Vajrasky Kok.
2014-05-13 10:50:15 +02:00