summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-01-06 19:03:15 (GMT)
committerGuido van Rossum <guido@python.org>2016-01-06 19:03:15 (GMT)
commit1a4afec0d66d8843834250836d1056ed6d687385 (patch)
treee7579960c7afc7bffdd08d1fc4f552a47d72fd1b /Misc
parent520f297eb4d85a99bee8a22d60c4139b8a443d94 (diff)
parente42823153990ab5a4bb5f9148458cf48e189f4f9 (diff)
downloadcpython-1a4afec0d66d8843834250836d1056ed6d687385.zip
cpython-1a4afec0d66d8843834250836d1056ed6d687385.tar.gz
cpython-1a4afec0d66d8843834250836d1056ed6d687385.tar.bz2
Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d39a1c6..fd22bbb 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -41,6 +41,12 @@ Core and Builtins
Library
-------
+- Issue #22570: Add 'path' attribute to pathlib.Path objects,
+ returning the same as str(), to make it more similar to DirEntry.
+ Library code can now write getattr(p, 'path', p) to get the path as
+ a string from a Path, a DirEntry, or a plain string. This is
+ essentially a small one-off protocol.
+
- Issue #26012: Don't traverse into symlinks for ** pattern in
pathlib.Path.[r]glob().