[Python-checkins] r83547 - python/branches/py3k/Doc/library/os.path.rst
georg.brandl
python-checkins at python.org
Mon Aug 2 21:19:26 CEST 2010
Author: georg.brandl
Date: Mon Aug 2 21:19:26 2010
New Revision: 83547
Log:
#7386: add example that shows that trailing path separators are stripped.
Modified:
python/branches/py3k/Doc/library/os.path.rst
Modified: python/branches/py3k/Doc/library/os.path.rst
==============================================================================
--- python/branches/py3k/Doc/library/os.path.rst (original)
+++ python/branches/py3k/Doc/library/os.path.rst Mon Aug 2 21:19:26 2010
@@ -207,7 +207,9 @@
.. 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!
More information about the Python-checkins
mailing list