-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
bpo-34333: Fix %-formatting in Path.with_suffix() #8663
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
Conversation
ericvsmith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@ericvsmith thanks for the review! Do you have any suggestions on making the NEWS entry more descriptive? I'm pretty sure that I did a bad job explaining the bug :) |
|
I'm not sure it's much of an improvement, but had I been writing it from scratch I would have gone with: Fix %-formatting in :meth: Although if I'd been doing it, I would have changed it to an f-string (of course!). I didn't suggest that just to minimize churn. But seriously: one of the motivating points of Anyway, take that last suggestion or not, you won't hurt my feelings. |
8e5441f to
4527f4a
Compare
|
Thanks for the suggestions! Initially, I thought about using f-strings in the whole module, but then I didn't want to introduce code churn and come up with artificial examples like the ones at https://bugs.python.org/issue27161 I'm planning to triage/review/merge pathlib issues and PRs in the coming weeks, so I can write proof-of-concept patch to implement your suggestion. |
|
Thanks @berkerpeksag for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
GH-8731 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 423d05f) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
https://bugs.python.org/issue34333