summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.5.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-31 12:31:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-31 12:31:53 (GMT)
commit38220931433ab2d83892170e96a4d66764ce5338 (patch)
tree29fe3fe23b61b7627a30da3de0bc218fa9cdaa04 /Doc/whatsnew/3.5.rst
parentdd83bd2f9c8c328dc6b7655f33581e09df0e3611 (diff)
downloadcpython-38220931433ab2d83892170e96a4d66764ce5338.zip
cpython-38220931433ab2d83892170e96a4d66764ce5338.tar.gz
cpython-38220931433ab2d83892170e96a4d66764ce5338.tar.bz2
Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath.
Based on patch by Rafik Draoui.
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r--Doc/whatsnew/3.5.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index fe981e6..15d7f26 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -370,6 +370,13 @@ os
* :class:`os.stat_result` now has a :attr:`~os.stat_result.st_file_attributes`
attribute on Windows. (Contributed by Ben Hoyt in :issue:`21719`.)
+os.path
+-------
+
+* New :func:`~os.path.commonpath` function that extracts common path prefix.
+ Unlike the :func:`~os.path.commonprefix` function, it always returns a valid
+ patch. (Contributed by Rafik Draoui and Serhiy Storchaka in :issue:`10395`.)
+
pickle
------