diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-07-21 18:34:51 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-07-21 18:34:51 (GMT) |
commit | 779b63d005c4e818f907e0e32bdc34ebd860cc61 (patch) | |
tree | b1f30f99d50ac9c078d54b00985705f223b90ede /Lib/posixpath.py | |
parent | a606aef743aee23cf313fd57f99cf29dfc164316 (diff) | |
parent | e3de175a5e280a01fda003a825bab7bdfedf445b (diff) | |
download | cpython-779b63d005c4e818f907e0e32bdc34ebd860cc61.zip cpython-779b63d005c4e818f907e0e32bdc34ebd860cc61.tar.gz cpython-779b63d005c4e818f907e0e32bdc34ebd860cc61.tar.bz2 |
Merge #15342: Add clarifying sentence to posixpath.join docstring.
This sentence appears as a clarifying note in the HTML docs, and seems
worth having in the docstring since it covers a very common use case
that isn't otherwise obvious. Thanks to Yongzhi Pan for the suggestion.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 39b16a8..cb93796 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -71,7 +71,8 @@ def isabs(s): def join(a, *p): """Join two or more pathname components, inserting '/' as needed. If any component is an absolute path, all previous path components - will be discarded.""" + will be discarded. An empty last part will result in a path that + ends with a separator.""" sep = _get_sep(a) path = a try: |