bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) · python/cpython@72b874a · GitHub
Skip to content

Commit 72b874a

Browse files
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking. https://bugs.python.org/issue38422 Automerge-Triggered-By: @pitrou (cherry picked from commit 8d4fef4) Co-authored-by: Ram Rachum <ram@rachum.com>
1 parent 0118d10 commit 72b874a

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lib/pathlib.py

Lines changed: 10 additions & 2 deletions
Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)