]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Nov 2019 17:04:10 +0000 (10:04 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2019 17:04:10 +0000 (10:04 -0700)
commitaa1fee8ffb0fb77a873c69d311759081346f8f4a
treed968415137b7b3f8eb269d4df3d9886017a52e66
parentfe934e1d03bca6ca6dd1bf87fce1695eeac984ce
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 8d4fef4ee2a318097f429cf6cbd4fb2e430bb9da)

Co-authored-by: Ram Rachum <ram@rachum.com>
Lib/pathlib.py
Misc/NEWS.d/next/Library/2019-10-09-18-16-51.bpo-38422.aiM5bq.rst [new file with mode: 0644]