Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38422: Clarify docstrings of pathlib suffix(es) #16679

Merged
merged 1 commit into from Nov 2, 2019

Conversation

cool-RR
Copy link
Contributor

@cool-RR cool-RR commented Oct 9, 2019

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

@cool-RR cool-RR marked this pull request as ready for review Oct 9, 2019
@brandtbucher brandtbucher added the docs Documentation in the Doc dir label Oct 9, 2019
Copy link
Member

@brandtbucher brandtbucher left a comment

Same here, thanks for this improvement @cool-RR!

Lib/pathlib.py Outdated Show resolved Hide resolved
@cool-RR
Copy link
Contributor Author

cool-RR commented Oct 30, 2019

@pitrou Would you like to review this PR?

@pitrou pitrou added needs backport to 3.7 needs backport to 3.8 🤖 automerge PR will be merged once it's been approved and all CI passed labels Nov 2, 2019
pitrou
pitrou approved these changes Nov 2, 2019
Copy link
Member

@pitrou pitrou left a comment

An obvious improvement. Thanks @cool-RR for doing this.

@miss-islington miss-islington merged commit 8d4fef4 into python:master Nov 2, 2019
@miss-islington
Copy link
Contributor

miss-islington commented Nov 2, 2019

Thanks @cool-RR for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒🤖

@bedevere-bot
Copy link

bedevere-bot commented Nov 2, 2019

GH-17031 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 2, 2019
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>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 2, 2019
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>
@bedevere-bot
Copy link

bedevere-bot commented Nov 2, 2019

GH-17032 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Nov 2, 2019
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>
miss-islington added a commit that referenced this pull request Nov 2, 2019
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>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
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
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir 🤖 automerge PR will be merged once it's been approved and all CI passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants