]> 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:18 +0000 (10:04 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2019 17:04:18 +0000 (10:04 -0700)
commit72b874a2ac6a7c1931e8b60fb865dc57adb441ee
tree98d7e0c70ace749429d97c1bc7fb99c90300494d
parent0118d109d54bf75c99a8b0fa9aeae1a478ac4b7e
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]