summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-02 19:19:26 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-02 19:19:26 (GMT)
commit353ebce2a02c1ee74f55524f9330eb54c1c6b2c7 (patch)
tree38c6c1412aa8c20597504a2121395b622a7c9cef /Doc/library
parent56be37cef2c102190b88c015ca9820821f35792a (diff)
downloadcpython-353ebce2a02c1ee74f55524f9330eb54c1c6b2c7.zip
cpython-353ebce2a02c1ee74f55524f9330eb54c1c6b2c7.tar.gz
cpython-353ebce2a02c1ee74f55524f9330eb54c1c6b2c7.tar.bz2
#7386: add example that shows that trailing path separators are stripped.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/os.path.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 819bea9..317f55a 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -207,7 +207,9 @@ applications should use string objects to access all files.
.. function:: normpath(path)
Normalize a pathname. This collapses redundant separators and up-level
- references so that ``A//B``, ``A/./B`` and ``A/foo/../B`` all become ``A/B``.
+ references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all become
+ ``A/B``.
+
It does not normalize the case (use :func:`normcase` for that). On Windows, it
converts forward slashes to backward slashes. It should be understood that this
may change the meaning of the path if it contains symbolic links!