diff options
author | Guido van Rossum <guido@python.org> | 2016-01-06 19:01:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-01-06 19:01:42 (GMT) |
commit | e42823153990ab5a4bb5f9148458cf48e189f4f9 (patch) | |
tree | d9f073721f49104b44e505f308441f1e005a38c0 /Misc/NEWS | |
parent | 69bfb15bd8cb87dd07f1cf6c53f78b399c7ef937 (diff) | |
download | cpython-e42823153990ab5a4bb5f9148458cf48e189f4f9.zip cpython-e42823153990ab5a4bb5f9148458cf48e189f4f9.tar.gz cpython-e42823153990ab5a4bb5f9148458cf48e189f4f9.tar.bz2 |
Issue #22570: Add 'path' attribute to pathlib.Path objects.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,6 +13,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(). |