summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-14 06:46:08 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-14 06:46:08 (GMT)
commit539c1652993d46a4fc63fc4c388120a9f61e0cd1 (patch)
tree4b28435c413a7ab6ed6d1ea6587798950901d1c6 /Doc
parent7c4cad51ba55cac30eac7e35a5ebbb06cfcab6e2 (diff)
downloadcpython-539c1652993d46a4fc63fc4c388120a9f61e0cd1.zip
cpython-539c1652993d46a4fc63fc4c388120a9f61e0cd1.tar.gz
cpython-539c1652993d46a4fc63fc4c388120a9f61e0cd1.tar.bz2
#6825: small correction to split() docs.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.path.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 92f48cf..6dc82b6 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -268,14 +268,14 @@ applications should use string objects to access all files.
.. function:: split(path)
- Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the last
- pathname component and *head* is everything leading up to that. The *tail* part
- will never contain a slash; if *path* ends in a slash, *tail* will be empty. If
- there is no slash in *path*, *head* will be empty. If *path* is empty, both
- *head* and *tail* are empty. Trailing slashes are stripped from *head* unless
- it is the root (one or more slashes only). In nearly all cases, ``join(head,
- tail)`` equals *path* (the only exception being when there were multiple slashes
- separating *head* from *tail*).
+ Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the
+ last pathname component and *head* is everything leading up to that. The
+ *tail* part will never contain a slash; if *path* ends in a slash, *tail*
+ will be empty. If there is no slash in *path*, *head* will be empty. If
+ *path* is empty, both *head* and *tail* are empty. Trailing slashes are
+ stripped from *head* unless it is the root (one or more slashes only). In
+ all cases, ``join(head, tail)`` returns a path to the same location as *path*
+ (but the strings may differ).
.. function:: splitdrive(path)