.format
and others use f-strings.
refactor: convert string formatting to F-strings #29969
pull iw4p wants to merge 1 commits into bitcoin:master from iw4p:enhancement/f-string-formatting changing 1 files +11 −16-
iw4p commented at 12:23 pm on April 26, 2024: noneAll instances of string formatting have been converted to F-strings for increased readability and performance. Before that some of strings use
-
DrahtBot commented at 12:23 pm on April 26, 2024: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process.
Type Reviewers Concept NACK stickies-v If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #29971 (refactor: refactored platform assignment into get_platform function by iw4p)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
DrahtBot added the label Refactoring on Apr 26, 2024
-
brunoerg commented at 1:39 pm on April 26, 2024: contributorIf this is just a refactor, why the
fix:
on the commit message (8c600f7f78d5aaf3577f6257b648727d72e32a06)? -
iw4p force-pushed on Apr 26, 2024
-
iw4p commented at 2:28 pm on April 26, 2024: none
-
fanquake commented at 2:31 pm on April 26, 2024: memberYou should read our developer notes for an overview of what is relevant to our project. ref doesn’t mean anything here. You could probably use refactor:.
-
refactor: convert string formatting to F-strings 36855f2fd9
-
iw4p force-pushed on Apr 26, 2024
-
stickies-v commented at 11:07 am on April 30, 2024: contributorConcept NACK. Thank you for looking into this, and I support increased f-string usage, but imo this should be done organically whenever these lines are touched for other reasons (or with a scripted-diff across the code base, and enforcing it with linter, should there be support to do that). In its current form, this is not worth the review time imo.
-
iw4p commented at 11:15 am on April 30, 2024: noneHi, Thank you. I touched this file to optimize it like using built-in python request library instead of curl and decreasing the request numbers, and one more PR. That’s why I decided to go for converting strings to f-string.
-
glozow commented at 11:25 am on April 30, 2024: memberThanks for your interest in contributing! CONTRIBUTING.md and developer-notes.md contain good resources for beginners. As we have 300+ pulls open right now, closing this test refactor to focus review attention on the others (see https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#refactoring)
-
glozow closed this on Apr 30, 2024
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me